GetCustomAttributesInternal() 개인적인 메소드

private GetCustomAttributesInternal ( ICustomAttributeProvider obj, Type attributeType, bool pseudoAttrs ) : object[]
obj ICustomAttributeProvider
attributeType Type
pseudoAttrs bool
리턴 object[]
예제 #1
0
 internal static object[] GetCustomAttributesBase(ICustomAttributeProvider obj, Type attributeType)
 {
     object[] array;
     if (MonoCustomAttrs.IsUserCattrProvider(obj))
     {
         array = obj.GetCustomAttributes(attributeType, true);
     }
     else
     {
         array = MonoCustomAttrs.GetCustomAttributesInternal(obj, attributeType, false);
     }
     object[] pseudoCustomAttributes = MonoCustomAttrs.GetPseudoCustomAttributes(obj, attributeType);
     if (pseudoCustomAttributes != null)
     {
         object[] array2 = new object[array.Length + pseudoCustomAttributes.Length];
         Array.Copy(array, array2, array.Length);
         Array.Copy(pseudoCustomAttributes, 0, array2, array.Length, pseudoCustomAttributes.Length);
         return(array2);
     }
     return(array);
 }