13 [global::__DynamicallyInvokable]
16 private class XmlSerializerMappingKey
20 public XmlSerializerMappingKey(
XmlMapping mapping)
25 public override bool Equals(
object obj)
27 XmlSerializerMappingKey xmlSerializerMappingKey = obj as XmlSerializerMappingKey;
28 if (xmlSerializerMappingKey ==
null)
32 if (Mapping.Key != xmlSerializerMappingKey.Mapping.Key)
36 if (Mapping.
ElementName != xmlSerializerMappingKey.Mapping.ElementName)
40 if (Mapping.
Namespace != xmlSerializerMappingKey.Mapping.Namespace)
44 if (Mapping.IsSoap != xmlSerializerMappingKey.Mapping.IsSoap)
51 public override int GetHashCode()
53 int num = (!Mapping.IsSoap) ? 1 : 0;
54 if (Mapping.Key !=
null)
56 num ^= Mapping.Key.GetHashCode();
70 private TempAssembly tempAssembly;
72 private bool typedSerializer;
74 private Type primitiveType;
80 private static TempAssemblyCache cache =
new TempAssemblyCache();
90 if (defaultNamespaces ==
null)
93 xmlSerializerNamespaces.AddInternal(
"xsi",
"http://www.w3.org/2001/XMLSchema-instance");
94 xmlSerializerNamespaces.AddInternal(
"xsd",
"http://www.w3.org/2001/XMLSchema");
95 if (defaultNamespaces ==
null)
97 defaultNamespaces = xmlSerializerNamespaces;
100 return defaultNamespaces;
165 [global::__DynamicallyInvokable]
176 [global::__DynamicallyInvokable]
178 : this(type, overrides, extraTypes, root, defaultNamespace, null)
185 [global::__DynamicallyInvokable]
187 : this(type, null, new
Type[0], root, null, null)
194 [global::__DynamicallyInvokable]
196 : this(type, null, extraTypes, null, null, null)
203 [global::__DynamicallyInvokable]
205 : this(type, overrides, new
Type[0], null, null, null)
211 [global::__DynamicallyInvokable]
214 tempAssembly = GenerateTempAssembly(xmlTypeMapping);
215 mapping = xmlTypeMapping;
220 [global::__DynamicallyInvokable]
222 : this(type, (string)null)
229 [global::__DynamicallyInvokable]
236 mapping = GetKnownMapping(type, defaultNamespace);
239 primitiveType = type;
242 tempAssembly = cache[defaultNamespace, type];
243 if (tempAssembly ==
null)
247 tempAssembly = cache[defaultNamespace, type];
248 if (tempAssembly ==
null)
251 Assembly assembly = TempAssembly.LoadGeneratedAssembly(type, defaultNamespace, out contract);
252 if (assembly ==
null)
256 tempAssembly = GenerateTempAssembly(mapping, type, defaultNamespace);
261 tempAssembly =
new TempAssembly(
new XmlMapping[1]
264 }, assembly, contract);
267 cache.Add(defaultNamespace, type, tempAssembly);
284 : this(type, overrides, extraTypes, root, defaultNamespace, location, null)
296 [Obsolete(
"This method is obsolete and will be removed in a future release of the .NET Framework. Please use a XmlSerializer constructor overload which does not take an Evidence parameter. See http://go2.microsoft.com/fwlink/?LinkId=131738 for more information.")]
304 if (extraTypes !=
null)
306 for (
int i = 0; i < extraTypes.Length; i++)
312 if (location !=
null || evidence !=
null)
314 DemandForUserLocationOrEvidence();
316 tempAssembly = GenerateTempAssembly(mapping, type, defaultNamespace, location, evidence);
320 private void DemandForUserLocationOrEvidence()
324 internal static TempAssembly GenerateTempAssembly(XmlMapping xmlMapping)
326 return GenerateTempAssembly(xmlMapping,
null,
null);
329 internal static TempAssembly GenerateTempAssembly(XmlMapping xmlMapping,
Type type,
string defaultNamespace)
331 if (xmlMapping ==
null)
335 return new TempAssembly(
new XmlMapping[1]
341 }, defaultNamespace,
null,
null);
344 internal static TempAssembly GenerateTempAssembly(XmlMapping xmlMapping, Type type,
string defaultNamespace,
string location,
Evidence evidence)
346 return new TempAssembly(
new XmlMapping[1]
352 }, defaultNamespace, location, evidence);
358 [global::__DynamicallyInvokable]
369 [global::__DynamicallyInvokable]
382 [global::__DynamicallyInvokable]
393 [global::__DynamicallyInvokable]
406 [global::__DynamicallyInvokable]
417 [global::__DynamicallyInvokable]
420 Serialize(xmlWriter, o, namespaces,
null);
431 Serialize(xmlWriter, o, namespaces, encodingStyle,
null);
444 if (primitiveType !=
null)
446 if (encodingStyle !=
null && encodingStyle.Length > 0)
450 SerializePrimitive(xmlWriter, o, namespaces);
452 else if (tempAssembly ==
null || typedSerializer)
455 xmlSerializationWriter.Init(xmlWriter, (namespaces ==
null || namespaces.
Count == 0) ? DefaultNamespaces : namespaces, encodingStyle,
id, tempAssembly);
462 xmlSerializationWriter.Dispose();
467 tempAssembly.InvokeWriter(mapping, xmlWriter, o, (namespaces ==
null || namespaces.
Count == 0) ? DefaultNamespaces : namespaces, encodingStyle,
id);
489 [global::__DynamicallyInvokable]
503 [global::__DynamicallyInvokable]
517 [global::__DynamicallyInvokable]
539 return Deserialize(xmlReader, encodingStyle, events);
549 events.sender =
this;
552 if (primitiveType !=
null)
554 if (encodingStyle !=
null && encodingStyle.Length > 0)
558 return DeserializePrimitive(xmlReader, events);
560 if (tempAssembly ==
null || typedSerializer)
563 xmlSerializationReader.Init(xmlReader, events, encodingStyle, tempAssembly);
570 xmlSerializationReader.Dispose();
573 return tempAssembly.InvokeReader(mapping, xmlReader, events, encodingStyle);
599 [global::__DynamicallyInvokable]
602 if (primitiveType !=
null)
604 TypeDesc typeDesc = (TypeDesc)TypeScope.PrimtiveTypes[primitiveType];
605 return xmlReader.
IsStartElement(typeDesc.DataType.Name,
string.Empty);
607 if (tempAssembly !=
null)
609 return tempAssembly.CanRead(mapping, xmlReader);
617 [global::__DynamicallyInvokable]
628 [global::__DynamicallyInvokable]
632 if (mappings ==
null || mappings.Length == 0)
637 Assembly left = (type ==
null) ?
null : TempAssembly.LoadGeneratedAssembly(type,
null, out contract);
638 TempAssembly tempAssembly =
null;
647 tempAssembly =
new TempAssembly(mappings,
new Type[1]
650 },
null,
null,
null);
652 contract = tempAssembly.Contract;
653 for (
int i = 0; i < array.Length; i++)
655 array[i] = (
XmlSerializer)contract.TypedSerializers[mappings[i].Key];
656 array[i].SetTempAssembly(tempAssembly, mappings[i]);
660 return GetSerializersFromCache(mappings, type);
663 for (
int j = 0; j < array2.Length; j++)
665 array2[j] = (
XmlSerializer)contract.TypedSerializers[mappings[j].Key];
674 lock (xmlSerializerTable)
676 hashtable = (xmlSerializerTable[type] as
Hashtable);
677 if (hashtable ==
null)
680 xmlSerializerTable[type] = hashtable;
686 for (
int i = 0; i < mappings.Length; i++)
688 XmlSerializerMappingKey key =
new XmlSerializerMappingKey(mappings[i]);
690 if (array[i] ==
null)
692 hashtable2.
Add(key, i);
695 if (hashtable2.
Count > 0)
697 XmlMapping[] array2 =
new XmlMapping[hashtable2.
Count];
699 foreach (XmlSerializerMappingKey key2
in hashtable2.
Keys)
701 array2[num++] = key2.Mapping;
703 TempAssembly tempAssembly =
new TempAssembly(array2,
new Type[1]
706 },
null,
null,
null);
707 XmlSerializerImplementation contract = tempAssembly.Contract;
709 foreach (XmlSerializerMappingKey key3
in hashtable2.
Keys)
711 num = (int)hashtable2[key3];
712 array[num] = (
XmlSerializer)contract.TypedSerializers[key3.Mapping.Key];
713 array[num].SetTempAssembly(tempAssembly, key3.Mapping);
714 hashtable[key3] = array[num];
727 [Obsolete(
"This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of FromMappings which does not take an Evidence parameter. See http://go2.microsoft.com/fwlink/?LinkId=131738 for more information.")]
731 if (mappings ==
null || mappings.Length == 0)
739 TempAssembly tempAssembly =
new TempAssembly(mappings,
new Type[0],
null,
null, evidence);
742 for (
int i = 0; i < array.Length; i++)
771 if (types ==
null || types.Length == 0)
775 if (mappings ==
null)
784 foreach (
Type type
in types)
786 if (DynamicAssemblies.IsTypeDynamic(type))
790 if (assembly ==
null)
799 return TempAssembly.GenerateAssembly(mappings, types,
null,
null, XmlSerializerCompilerParameters.Create(parameters, needTempDirAccess:
true), assembly,
new Hashtable());
805 [global::__DynamicallyInvokable]
814 for (
int i = 0; i < types.Length; i++)
841 return Compiler.GetTempAssemblyName(type.
Assembly.
GetName(), defaultNamespace);
878 internal void SetTempAssembly(TempAssembly tempAssembly,
XmlMapping mapping)
880 this.tempAssembly = tempAssembly;
881 this.mapping = mapping;
882 typedSerializer =
true;
885 private static XmlTypeMapping GetKnownMapping(
Type type,
string ns)
887 if (ns !=
null && ns !=
string.Empty)
891 TypeDesc typeDesc = (TypeDesc)TypeScope.PrimtiveTypes[type];
892 if (typeDesc ==
null)
896 ElementAccessor elementAccessor =
new ElementAccessor();
897 elementAccessor.Name = typeDesc.DataType.Name;
898 XmlTypeMapping xmlTypeMapping =
new XmlTypeMapping(
null, elementAccessor);
899 xmlTypeMapping.SetKeyInternal(XmlMapping.GenerateKey(type,
null,
null));
900 return xmlTypeMapping;
903 private void SerializePrimitive(XmlWriter xmlWriter,
object o, XmlSerializerNamespaces namespaces)
905 XmlSerializationPrimitiveWriter xmlSerializationPrimitiveWriter =
new XmlSerializationPrimitiveWriter();
906 xmlSerializationPrimitiveWriter.Init(xmlWriter, namespaces,
null,
null,
null);
907 switch (
Type.GetTypeCode(primitiveType))
910 xmlSerializationPrimitiveWriter.Write_string(o);
913 xmlSerializationPrimitiveWriter.Write_int(o);
916 xmlSerializationPrimitiveWriter.Write_boolean(o);
919 xmlSerializationPrimitiveWriter.Write_short(o);
922 xmlSerializationPrimitiveWriter.Write_long(o);
925 xmlSerializationPrimitiveWriter.Write_float(o);
928 xmlSerializationPrimitiveWriter.Write_double(o);
931 xmlSerializationPrimitiveWriter.Write_decimal(o);
934 xmlSerializationPrimitiveWriter.Write_dateTime(o);
937 xmlSerializationPrimitiveWriter.Write_char(o);
940 xmlSerializationPrimitiveWriter.Write_unsignedByte(o);
943 xmlSerializationPrimitiveWriter.Write_byte(o);
946 xmlSerializationPrimitiveWriter.Write_unsignedShort(o);
949 xmlSerializationPrimitiveWriter.Write_unsignedInt(o);
952 xmlSerializationPrimitiveWriter.Write_unsignedLong(o);
955 if (primitiveType == typeof(XmlQualifiedName))
957 xmlSerializationPrimitiveWriter.Write_QName(o);
960 if (primitiveType == typeof(
byte[]))
962 xmlSerializationPrimitiveWriter.Write_base64Binary(o);
965 if (primitiveType == typeof(Guid))
967 xmlSerializationPrimitiveWriter.Write_guid(o);
970 if (primitiveType == typeof(TimeSpan))
972 xmlSerializationPrimitiveWriter.Write_TimeSpan(o);
975 throw new InvalidOperationException(Res.GetString(
"XmlUnxpectedType", primitiveType.
FullName));
978 private object DeserializePrimitive(XmlReader xmlReader, XmlDeserializationEvents events)
980 XmlSerializationPrimitiveReader xmlSerializationPrimitiveReader =
new XmlSerializationPrimitiveReader();
981 xmlSerializationPrimitiveReader.Init(xmlReader, events,
null,
null);
982 switch (
Type.GetTypeCode(primitiveType))
985 return xmlSerializationPrimitiveReader.Read_string();
987 return xmlSerializationPrimitiveReader.Read_int();
989 return xmlSerializationPrimitiveReader.Read_boolean();
991 return xmlSerializationPrimitiveReader.Read_short();
993 return xmlSerializationPrimitiveReader.Read_long();
995 return xmlSerializationPrimitiveReader.Read_float();
997 return xmlSerializationPrimitiveReader.Read_double();
999 return xmlSerializationPrimitiveReader.Read_decimal();
1001 return xmlSerializationPrimitiveReader.Read_dateTime();
1003 return xmlSerializationPrimitiveReader.Read_char();
1005 return xmlSerializationPrimitiveReader.Read_unsignedByte();
1007 return xmlSerializationPrimitiveReader.Read_byte();
1009 return xmlSerializationPrimitiveReader.Read_unsignedShort();
1011 return xmlSerializationPrimitiveReader.Read_unsignedInt();
1013 return xmlSerializationPrimitiveReader.Read_unsignedLong();
1015 if (primitiveType == typeof(XmlQualifiedName))
1017 return xmlSerializationPrimitiveReader.Read_QName();
1019 if (primitiveType == typeof(
byte[]))
1021 return xmlSerializationPrimitiveReader.Read_base64Binary();
1023 if (primitiveType == typeof(Guid))
1025 return xmlSerializationPrimitiveReader.Read_guid();
1029 return xmlSerializationPrimitiveReader.Read_TimeSpan();
1031 throw new InvalidOperationException(Res.GetString(
"XmlUnxpectedType", primitiveType.
FullName));
Provides an interface to enable a class to return line and position information.
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
XmlResolver XmlResolver
Sets the T:System.Xml.XmlResolver used for resolving DTD references.
delegate void UnreferencedObjectEventHandler(object sender, UnreferencedObjectEventArgs e)
Represents the method that handles the E:System.Xml.Serialization.XmlSerializer.UnreferencedObject ev...
virtual object Deserialize(XmlSerializationReader reader)
Deserializes the XML document contained by the specified T:System.Xml.Serialization....
void Serialize(XmlWriter xmlWriter, object o)
Serializes the specified T:System.Object and writes the XML document to a file using the specified T:...
string Namespace
Gets the namespace of the mapped element.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
TempFileCollection TempFiles
Gets or sets the collection that contains the temporary files.
static Assembly GenerateSerializer(Type[] types, XmlMapping[] mappings, CompilerParameters parameters)
Returns an assembly that contains custom-made serializers used to serialize or deserialize the specif...
Contains the XML namespaces and prefixes that the T:System.Xml.Serialization.XmlSerializer uses to ge...
void Serialize(XmlWriter xmlWriter, object o, XmlSerializerNamespaces namespaces, string encodingStyle)
Serializes the specified object and writes the XML document to a file using the specified T:System....
virtual void Add(object key, object value)
Adds an element with the specified key and value into the T:System.Collections.Hashtable.
XmlAttributeEventHandler UnknownAttribute
Occurs when the T:System.Xml.Serialization.XmlSerializer encounters an XML attribute of unknown type ...
int Indentation
Gets or sets how many IndentChars to write for each level in the hierarchy when P:System....
object Deserialize(TextReader textReader)
Deserializes the XML document contained by the specified T:System.IO.TextReader.
The exception that is thrown when the execution stack overflows because it contains too many nested m...
virtual XmlSerializationReader CreateReader()
Returns an object used to read the XML document to be serialized.
abstract string FullName
Gets the fully qualified name of the type, including its namespace but not its assembly.
XmlNodeEventHandler OnUnknownNode
Gets or sets an object that represents the method that handles the E:System.Xml.Serialization....
virtual void Serialize(object o, XmlSerializationWriter writer)
Serializes the specified T:System.Object and writes the XML document to a file using the specified T:...
void Serialize(Stream stream, object o)
Serializes the specified T:System.Object and writes the XML document to a file using the specified T:...
int LinePosition
Gets the current line position.
void IncludeType(Type type)
Includes mappings for a type for later use when import methods are invoked.
TypeCode
Specifies the type of an object.
object Deserialize(XmlReader xmlReader, string encodingStyle, XmlDeserializationEvents events)
Deserializes the object using the data contained by the specified T:System.Xml.XmlReader.
static string GetXmlSerializerAssemblyName(Type type, string defaultNamespace)
Returns the name of the assembly that contains the serializer for the specified type in the specified...
XmlSerializer()
Initializes a new instance of the T:System.Xml.Serialization.XmlSerializer class.
XmlSerializer(Type type, XmlRootAttribute root)
Initializes a new instance of the T:System.Xml.Serialization.XmlSerializer class that can serialize o...
virtual AssemblyName GetName()
Gets an T:System.Reflection.AssemblyName for this assembly.
object Deserialize(XmlReader xmlReader, XmlDeserializationEvents events)
Deserializes an XML document contained by the specified T:System.Xml.XmlReader and allows the overrid...
bool IncludeDebugInformation
Gets or sets a value indicating whether to include debug information in the compiled executable.
void Serialize(TextWriter textWriter, object o, XmlSerializerNamespaces namespaces)
Serializes the specified T:System.Object and writes the XML document to a file using the specified T:...
bool Normalization
Gets or sets a value indicating whether to normalize white space and attribute values.
static XmlSerializer [] FromMappings(XmlMapping[] mappings)
Returns an array of T:System.Xml.Serialization.XmlSerializer objects created from an array of T:Syste...
Represents an abstract class used for controlling serialization by the T:System.Xml....
XmlAttributeEventHandler OnUnknownAttribute
Gets or sets an object that represents the method that handles the E:System.Xml.Serialization....
static string GetXmlSerializerAssemblyName(Type type)
Returns the name of the assembly that contains one or more versions of the T:System....
virtual Hashtable TypedSerializers
Gets the collection of typed serializers that is found in the assembly.
static Delegate Remove(Delegate source, Delegate value)
Removes the last occurrence of the invocation list of a delegate from the invocation list of another ...
static Delegate Combine(Delegate a, Delegate b)
Concatenates the invocation lists of two delegates.
Represents the parameters used to invoke a compiler.
void Serialize(Stream stream, object o, XmlSerializerNamespaces namespaces)
Serializes the specified T:System.Object and writes the XML document to a file using the specified T:...
XmlTypeMapping ImportTypeMapping(Type type)
Generates a mapping to an XML Schema element for a specified .NET Framework type.
WhitespaceHandling
Specifies how white space is handled.
Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files t...
Represents a reader that provides fast, non-cached, forward-only access to XML data....
Controls deserialization by the T:System.Xml.Serialization.XmlSerializer class.
Represents a reader that provides fast, noncached, forward-only access to XML data....
abstract void Flush()
When overridden in a derived class, flushes whatever is in the buffer to the underlying streams and a...
SecurityAction
Specifies the security actions that can be performed using declarative security.
XmlSerializer(Type type, string defaultNamespace)
Initializes a new instance of the T:System.Xml.Serialization.XmlSerializer class that can serialize o...
virtual bool CanDeserialize(XmlReader xmlReader)
Gets a value that indicates whether this T:System.Xml.Serialization.XmlSerializer can deserialize a s...
Controls XML serialization of the attribute target as an XML root element.
virtual bool IsStartElement()
Calls M:System.Xml.XmlReader.MoveToContent and tests if the current content node is a start tag or em...
Supports mappings between .NET Framework types and XML Schema data types.
Represents a collection of key/value pairs that are organized based on the hash code of the key....
virtual ICollection Keys
Gets an T:System.Collections.ICollection containing the keys in the T:System.Collections....
Exception InnerException
Gets the T:System.Exception instance that caused the current exception.
Represents a writer that provides a fast, non-cached, forward-only way of generating streams or files...
Represents a writer that can write a sequential series of characters. This class is abstract.
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
Serializes and deserializes objects into and from XML documents. The T:System.Xml....
abstract Assembly Assembly
Gets the T:System.Reflection.Assembly in which the type is declared. For generic types,...
XmlElementEventHandler UnknownElement
Occurs when the T:System.Xml.Serialization.XmlSerializer encounters an XML element of unknown type du...
Represents a delegate, which is a data structure that refers to a static method or to a class instanc...
The exception that is thrown when there is not enough memory to continue the execution of a program.
Represents type declarations: class types, interface types, array types, value types,...
static XmlSerializer [] FromTypes(Type[] types)
Returns an array of T:System.Xml.Serialization.XmlSerializer objects created from an array of types.
int LineNumber
Gets the current line number.
XmlSerializer(XmlTypeMapping xmlTypeMapping)
Initializes an instance of the T:System.Xml.Serialization.XmlSerializer class using an object that ma...
delegate void XmlAttributeEventHandler(object sender, XmlAttributeEventArgs e)
Represents the method that handles the E:System.Xml.Serialization.XmlSerializer.UnknownAttribute
Generates mappings to XML schema element declarations, including literal XML Schema Definition (XSD) ...
static XmlSerializer [] FromMappings(XmlMapping[] mappings, Evidence evidence)
Returns an instance of the T:System.Xml.Serialization.XmlSerializer class created from mappings of on...
delegate void XmlNodeEventHandler(object sender, XmlNodeEventArgs e)
Represents the method that handles the E:System.Xml.Serialization.XmlSerializer.UnknownNode event of ...
static XmlSerializer [] FromMappings(XmlMapping[] mappings, Type type)
Returns an instance of the T:System.Xml.Serialization.XmlSerializer class from the specified mappings...
Formatting Formatting
Indicates how the output is formatted.
WhitespaceHandling WhitespaceHandling
Gets or sets a value that specifies how white space is handled.
int Count
Gets the number of prefix and namespace pairs in the collection.
XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace, string location)
Initializes a new instance of the T:System.Xml.Serialization.XmlSerializer class that can serialize o...
static Assembly GenerateSerializer(Type[] types, XmlMapping[] mappings)
Returns an assembly that contains custom-made serializers used to serialize or deserialize the specif...
The exception that is thrown when one of the arguments provided to a method is not valid.
UnreferencedObjectEventHandler OnUnreferencedObject
Gets or sets an object that represents the method that handles the E:System.Xml.Serialization....
object Deserialize(XmlReader xmlReader)
Deserializes the XML document contained by the specified T:System.Xml.XmlReader.
string ElementName
Get the name of the mapped element.
XmlSerializer(Type type, XmlAttributeOverrides overrides)
Initializes a new instance of the T:System.Xml.Serialization.XmlSerializer class that can serialize o...
bool GenerateInMemory
Gets or sets a value indicating whether to generate the output in memory.
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
XmlSerializer(Type type)
Initializes a new instance of the T:System.Xml.Serialization.XmlSerializer class that can serialize o...
Defines the reader, writer, and methods for pre-generated, typed serializers.
UnreferencedObjectEventHandler UnreferencedObject
Occurs during deserialization of a SOAP-encoded XML stream, when the T:System.Xml....
Represents a reader that can read a sequential series of characters.
Defines the set of information that constitutes input to security policy decisions....
virtual XmlSerializationWriter CreateWriter()
When overridden in a derived class, returns a writer used to serialize the object.
object Deserialize(Stream stream)
Deserializes the XML document contained by the specified T:System.IO.Stream.
XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace, string location, Evidence evidence)
Initializes a new instance of the T:System.Xml.Serialization.XmlSerializer class that can serialize o...
XmlElementEventHandler OnUnknownElement
Gets or sets an object that represents the method that handles the E:System.Xml.Serialization....
Formatting
Specifies formatting options for the T:System.Xml.XmlTextWriter.
The exception that is thrown when a method call is invalid for the object's current state.
Allows you to override property, field, and class attributes when you use the T:System....
The exception that is thrown by methods invoked through reflection. This class cannot be inherited.
Contains fields that can be used to pass event delegates to a thread-safe Overload:System....
XmlNodeEventHandler UnknownNode
Occurs when the T:System.Xml.Serialization.XmlSerializer encounters an XML node of unknown type durin...
void Serialize(TextWriter textWriter, object o)
Serializes the specified T:System.Object and writes the XML document to a file using the specified T:...
Provides information about a specific culture (called a locale for unmanaged code development)....
Contains a mapping of one type to another.
The exception that is thrown when a call is made to the M:System.Threading.Thread....
void Serialize(XmlWriter xmlWriter, object o, XmlSerializerNamespaces namespaces)
Serializes the specified T:System.Object and writes the XML document to a file using the specified T:...
XmlSerializer(Type type, Type[] extraTypes)
Initializes a new instance of the T:System.Xml.Serialization.XmlSerializer class that can serialize o...
The exception that is thrown when a requested method or operation is not implemented.
Represents a collection of temporary files.
virtual int Count
Gets the number of key/value pairs contained in the T:System.Collections.Hashtable.
object Deserialize(XmlReader xmlReader, string encodingStyle)
Deserializes the XML document contained by the specified T:System.Xml.XmlReader and encoding style.
delegate void XmlElementEventHandler(object sender, XmlElementEventArgs e)
Represents the method that handles the E:System.Xml.Serialization.XmlSerializer.UnknownElement event ...
XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace)
Initializes a new instance of the T:System.Xml.Serialization.XmlSerializer class that can serialize o...
void Serialize(XmlWriter xmlWriter, object o, XmlSerializerNamespaces namespaces, string encodingStyle, string id)
Serializes the specified T:System.Object and writes the XML document to a file using the specified T:...
Provides a generic view of a sequence of bytes. This is an abstract class.To browse the ....