public static IEnumerable <CustomAttributeData> GetTypeForwardedToAttributes(MetadataOnlyModule manifestModule, Token token) { if (token.TokenType != System.Reflection.Adds.TokenType.Assembly) { return(new CustomAttributeData[0]); } return(PseudoCustomAttributes.GetTypeForwardedToAttributes(manifestModule)); }
public virtual IEnumerable <CustomAttributeData> GetPseudoCustomAttributes(MetadataOnlyModule module, Token token) { List <CustomAttributeData> customAttributeDatas = new List <CustomAttributeData>(); customAttributeDatas.AddRange(PseudoCustomAttributes.GetTypeForwardedToAttributes(module, token)); CustomAttributeData serializableAttribute = PseudoCustomAttributes.GetSerializableAttribute(module, token); if (serializableAttribute != null) { customAttributeDatas.Add(serializableAttribute); } return(customAttributeDatas); }
public static IEnumerable <CustomAttributeData> GetTypeForwardedToAttributes(MetadataOnlyAssembly assembly) { return(PseudoCustomAttributes.GetTypeForwardedToAttributes(assembly.ManifestModuleInternal)); }