GetAttr() static private method

static private GetAttr ( ICustomAttributeProvider provider, Type attrType ) : object
provider ICustomAttributeProvider
attrType System.Type
return object
Ejemplo n.º 1
0
 internal static string GenerateKey(Type type, XmlRootAttribute root, string ns)
 {
     if (root == null)
     {
         root = (XmlRootAttribute)XmlAttributes.GetAttr(type.GetTypeInfo(), typeof(XmlRootAttribute));
     }
     return(type.FullName + ":" + (root == null ? String.Empty : root.Key) + ":" + (ns == null ? String.Empty : ns));
 }
Ejemplo n.º 2
0
 internal static string GenerateKey(Type type, XmlRootAttribute?root, string?ns)
 {
     if (root == null)
     {
         root = (XmlRootAttribute?)XmlAttributes.GetAttr(type, typeof(XmlRootAttribute));
     }
     return($"{type.FullName}:{(root == null ? string.Empty : root.GetKey())}:{(ns == null ? string.Empty : ns)}");
 }