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

GetCustomAttributes() public static method

public static GetCustomAttributes ( Module target ) : IList
target Module
return IList
        public static IList<CustomAttributeData> GetCustomAttributes(Module target)
        {
            if (target == null)
                throw new ArgumentNullException("target");

            if (target.IsResourceInternal())
                return new List<CustomAttributeData>();

            return GetCustomAttributes(target, target.MetadataToken);
        }

Same methods

CustomAttributeData::GetCustomAttributes ( Assembly target ) : IList
CustomAttributeData::GetCustomAttributes ( MemberInfo target ) : IList
CustomAttributeData::GetCustomAttributes ( Module module, int tkTarget ) : IList
CustomAttributeData::GetCustomAttributes ( ParameterInfo target ) : IList

Usage Example

Esempio n. 1
0
 public override IList <CustomAttributeData> GetCustomAttributesData()
 {
     return(CustomAttributeData.GetCustomAttributes(this));
 }
All Usage Examples Of System.Reflection.CustomAttributeData::GetCustomAttributes