System.Reflection.PseudoCustomAttribute.GetCustomAttributes C# (CSharp) Method

GetCustomAttributes() static private method

static private GetCustomAttributes ( RuntimePropertyInfo property, Type caType, int &count ) : System.Attribute[]
property RuntimePropertyInfo
caType System.Type
count int
return System.Attribute[]
        internal static Attribute[] GetCustomAttributes(RuntimePropertyInfo property, Type caType, out int count) 
        {
            count = 0;
            return null;
        }
        internal static bool IsDefined(RuntimePropertyInfo property, Type caType) 

Same methods

PseudoCustomAttribute::GetCustomAttributes ( Assembly assembly, Type caType, int &count ) : System.Attribute[]
PseudoCustomAttribute::GetCustomAttributes ( Module module, Type caType, int &count ) : System.Attribute[]
PseudoCustomAttribute::GetCustomAttributes ( ParameterInfo parameter, Type caType, int &count ) : System.Attribute[]
PseudoCustomAttribute::GetCustomAttributes ( RuntimeConstructorInfo ctor, Type caType, bool includeSecCa, int &count ) : System.Attribute[]
PseudoCustomAttribute::GetCustomAttributes ( RuntimeEventInfo e, Type caType, int &count ) : System.Attribute[]
PseudoCustomAttribute::GetCustomAttributes ( RuntimeFieldInfo field, Type caType, int &count ) : System.Attribute[]
PseudoCustomAttribute::GetCustomAttributes ( RuntimeMethodInfo method, Type caType, bool includeSecCa, int &count ) : System.Attribute[]
PseudoCustomAttribute::GetCustomAttributes ( RuntimeType type, Type caType, bool includeSecCa, int &count ) : System.Attribute[]

Usage Example

        internal static object[] GetCustomAttributes(RuntimeParameterInfo parameter, RuntimeType caType)
        {
            int count = 0;

            Attribute[] sourceArray      = PseudoCustomAttribute.GetCustomAttributes(parameter, caType, out count);
            object[]    destinationArray = GetCustomAttributes(parameter.GetRuntimeModule(), parameter.MetadataToken, count, caType, !AllowCriticalCustomAttributes(parameter));
            if (count > 0)
            {
                Array.Copy(sourceArray, 0, destinationArray, destinationArray.Length - count, count);
            }
            return(destinationArray);
        }
All Usage Examples Of System.Reflection.PseudoCustomAttribute::GetCustomAttributes