public static JsonContainerAttribute GetJsonContainerAttribute(Type type)
 {
     return(CachedAttributeGetter <JsonContainerAttribute> .GetAttribute(type));
 }
Exemplo n.º 2
0
 public static DataContractAttribute GetDataContractAttribute(Type type)
 {
     return(CachedAttributeGetter <DataContractAttribute> .GetAttribute(type));
 }
Exemplo n.º 3
0
 public static SerializableAttribute GetSerializableAttribute(Type type)
 {
     return(CachedAttributeGetter <SerializableAttribute> .GetAttribute(type));
 }
Exemplo n.º 4
0
 public static T GetCachedAttribute <T>(object attributeProvider) where T : Attribute =>
 CachedAttributeGetter <T> .GetAttribute(attributeProvider);
 public static T?GetCachedAttribute <T>(object attributeProvider) where T : Attribute
 {
     return(CachedAttributeGetter <T> .GetAttribute(attributeProvider));
 }