System.Xml.Serialization.Compiler.GetTempAssemblyName C# (CSharp) Method

GetTempAssemblyName() static private method

static private GetTempAssemblyName ( AssemblyName parent, string ns ) : string
parent System.Reflection.AssemblyName
ns string
return string
        internal static string GetTempAssemblyName(AssemblyName parent, string ns)
        {
            return parent.Name + ".XmlSerializers" + (ns == null || ns.Length == 0 ? "" : "." + ns.GetHashCode());
        }
    }

Usage Example

 public static string GetXmlSerializerAssemblyName(Type type, string defaultNamespace)
 {
     if (type == null)
     {
         throw new ArgumentNullException("type");
     }
     return(Compiler.GetTempAssemblyName(type.Assembly.GetName(), defaultNamespace));
 }
All Usage Examples Of System.Xml.Serialization.Compiler::GetTempAssemblyName