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));
}