Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public static IEnumerable <CustomAttributeData> GetTypeForwardedToAttributes(MetadataOnlyAssembly assembly)
 {
     return(PseudoCustomAttributes.GetTypeForwardedToAttributes(assembly.ManifestModuleInternal));
 }