Xml |
public class XmlStreamDeserializationInfo : IXmlDeserializationInfo, IDisposable
The XmlStreamDeserializationInfo type exposes the following members.
| Name | Description | |
|---|---|---|
| XmlStreamDeserializationInfo | Initializes a new instance of the XmlStreamDeserializationInfo class. |
| Name | Description | |
|---|---|---|
| CurrentElementName | Returns the name of the current XML element. | |
| PropertyDictionary | Gets the property dictionary. This is a dictionary where some string/value pairs could be stored, and used during or after deserialization |
| Name | Description | |
|---|---|---|
| AnnounceDeserializationEnd | Announces that deserialization of the document hierarchy has reached the current stage. | |
| AnnounceDeserializationHasCompletelyFinished | Announces that deserialization has completely finished. | |
| BeginReading(Stream) | Begins reading from the specified stream. | |
| BeginReading(String) | Begins reading from the specified XML text. | |
| BeginReading(XmlReader) | Begins reading from the specified XML reader. | |
| CloseArray | Closes the current array scope. | |
| CloseElement | Closes the current element. | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
| EndReading | Ends reading and detaches the current XML reader. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetArray(Single) | Deserializes an array of Single values from the current node. | |
| GetArray(DateTime, Int32) | Deserializes an array of DateTime values. | |
| GetArray(Double, Int32) | Deserializes an array of double value. The xml node must be opened before with OpenArray | |
| GetArray(Int32, Int32) | Deserializes an array of integer values from the current XML element. | |
| GetArray(String, Double) | Deserializes an array of double values. The array is allocated automatically. | |
| GetArray(String, Int32) | Deserializes an array of Int32 values. | |
| GetArray(String, Int32) | Deserializes an array of nullable strings. | |
| GetArray(BitArray, BitArray, Int32) | Gets an array of nullable booleans. | |
| GetArrayOfPrimitiveTypeBase64 | Reads an array of primitive values encoded as Base64 into the provided destination array. | |
| GetArrayOfPrimitiveTypeBinHex | Reads an array of primitive values encoded as BinHex into the provided destination array. | |
| GetArrayOfStrings | Reads an array of strings from a named element. | |
| GetArrayOfValuesT | Reads an array of values of type T. | |
| GetBaseValueEmbedded | Reads an embedded base value for a derived instance. | |
| GetBaseValueEmbeddedOrNull | Deserializes the embedded base type. | |
| GetBaseValueStandalone | Reads a standalone base value for a derived instance. | |
| GetBoolean | Reads a boolean value from the current element content. | |
| GetBoolean(String) | Reads a named boolean child element. | |
| GetChar | Reads a named char child element. | |
| GetDateTime | Reads a named DateTime child element. | |
| GetDouble | Reads a Double from the current element content. | |
| GetDouble(String) | Reads a named Double child element. | |
| GetElementAsOuterXml | Gets the outer XML of a named element. | |
| GetEnum(String, Type) | Reads a named enum value of the given type. | |
| GetEnumT(String) | Reads a named enum value of type T. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetInt32 | Reads an Int32 from the current element content. | |
| GetInt32(String) | Reads a named Int32 child element. | |
| GetInt32Attribute | Reads an Int32 attribute of the current element. | |
| GetInt64 | Reads a named Int64 child element. | |
| GetMemoryStream | Reads a named MemoryStream child element. | |
| GetNodeContent | Gets the inner text content of the current node. | |
| GetNodeName | Retrieves the name of the current node. | |
| GetNullableBoolean | Reads a named nullable boolean child element. | |
| GetNullableDouble | Reads a named nullable Double child element. | |
| GetNullableEnumT | Reads a named nullable enum value of type T. | |
| GetNullableInt32 | Reads a named nullable Int32 child element. | |
| GetNullableStructT | Reads a nullable struct value. | |
| GetPropertyOrDefaultT | Gets a property value from the property dictionary identified by the provided key string. If the property does not exist in the dictionary, the default value is returned. | |
| GetSingle | Reads a Single from the current element content. | |
| GetSingle(String) | Reads a named Single child element. | |
| GetString | Reads a string from the current element content. | |
| GetString(String) | Reads a named string child element. | |
| GetStringAttribute | Reads a string attribute of the current element. | |
| GetStringAttributeOrNull | Reads a string attribute or returns null if missing. | |
| GetTimeSpan | Reads a named TimeSpan child element. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| GetValue(String, Object) | Reads a value of unknown type. | |
| GetValueT(String, Object) | Reads a value of type T. | |
| GetValueOrNull(Object) | Reads a value from the current element using its Type attribute and returns for undefined values. | |
| GetValueOrNull(String, Object) | Reads a value of unknown type or returns null. | |
| GetValueOrNullT(String, Object) | Reads a value of type T or returns null. | |
| GetValueOrOuterXml | Intended for lazy loading. Tries to get the deserialized value. If the type is unknown (this can happen if (especially for addin DLLs) a DLL is not loaded yet), the outer XML node is returned as string value, so it can be deserialized later. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| OpenArray | Opens the current array and returns its element count. | |
| OpenArray(String) | Opens a named array element and returns its element count. | |
| OpenElement | Opens the current element. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| AfterDeserializationHasCompletelyFinished | Occurs after (!) the deserialization process has completely finished, and the dirty flag of the document was cleared. This callback is intended to activate the data sources of the document, which should be suspended during the deserialization process. | |
| DeserializationFinished | This event is called if the deserialization process of all objects is finished and the deserialized objects are sorted into the document. Then the application should call AllFinished, which fires this event. The purpose of this event is to resolve the references in the deserialized objects. This resolving process can be successfully done only if the objects are put in the right places in the document, so that the document paths can be resolved to the right objects. | |
| InstanceCreated | Occurs when a new instance of this class is created. Argument is the created instance. This event is hold weak, thus you can safely add your handler without running in memory leaks. |