System.Xml.Serialization.XmlSerializer.GetXmlSerializerAssemblyName C# (CSharp) Method

GetXmlSerializerAssemblyName() public static method

public static GetXmlSerializerAssemblyName ( Type type ) : string
type System.Type
return string
        public static string GetXmlSerializerAssemblyName(Type type)
        {
            return GetXmlSerializerAssemblyName(type, null);
        }

Same methods

XmlSerializer::GetXmlSerializerAssemblyName ( Type type, string defaultNamespace ) : string

Usage Example

Ejemplo n.º 1
0
 /// <summary>Returns the name of the assembly that contains the serializer for the specified type in the specified namespace.</summary>
 /// <returns>The name of the assembly that contains specially built serializers.</returns>
 /// <param name="type">The <see cref="T:System.Type" /> you are interested in.</param>
 /// <param name="defaultNamespace">The namespace of the type.</param>
 public static string GetXmlSerializerAssemblyName(Type type, string defaultNamespace)
 {
     return(XmlSerializer.GetXmlSerializerAssemblyName(type) + "." + defaultNamespace.GetHashCode());
 }