internal static IList<CustomAttributeData> GetCustomAttributesData (ICustomAttributeProvider obj) { if (obj == null) throw new ArgumentNullException ("obj"); CustomAttributeData [] attrs = GetCustomAttributesDataInternal (obj); return Array.AsReadOnly<CustomAttributeData> (attrs); }