コード例 #1
0
 public static JsonContainerAttribute GetJsonContainerAttribute(Type type)
 {
     return(CachedAttributeGetter <JsonContainerAttribute> .GetAttribute(type));
 }
コード例 #2
0
 public static DataContractAttribute GetDataContractAttribute(Type type)
 {
     return(CachedAttributeGetter <DataContractAttribute> .GetAttribute(type));
 }
コード例 #3
0
 public static SerializableAttribute GetSerializableAttribute(Type type)
 {
     return(CachedAttributeGetter <SerializableAttribute> .GetAttribute(type));
 }
コード例 #4
0
 public static T GetCachedAttribute <T>(object attributeProvider) where T : Attribute =>
 CachedAttributeGetter <T> .GetAttribute(attributeProvider);
コード例 #5
0
 public static T?GetCachedAttribute <T>(object attributeProvider) where T : Attribute
 {
     return(CachedAttributeGetter <T> .GetAttribute(attributeProvider));
 }