Click or drag to resize

Serialization Class

Common serialization related functions.
Inheritance Hierarchy
System.Object
  GSF.Serialization

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.239-beta+5928cebde0dd955df84e791f5ea67acbd192773e
Syntax
public static class Serialization
View Source

The Serialization type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCloneObject<T>Obsolete.
Creates a clone of a serializable object.
Public methodStatic memberDeserialize<T>(Byte[], SerializationFormat) Deserializes a serialized Object.
Public methodStatic memberDeserialize<T>(Stream, SerializationFormat) Deserializes a serialized Object.
Public methodStatic memberGetBytesObsolete.
Performs binary serialization on the serializable object and returns the output as byte array.
Public methodStatic memberGetObject(Byte[])Obsolete.
Performs binary deserialization on the byte array and returns the object for it.
Public methodStatic memberGetObject<T>(Byte[])Obsolete.
Performs binary deserialization on the byte array and returns the typed object for it.
Public methodStatic memberGetObject<T>(String)Obsolete.
Performs XML deserialization on the XML string and returns the typed object for it.
Public Extension MethodGetOrDefault<T> Gets SerializationInfo value for specified name; otherwise defaultValue.
Public methodStatic memberGetStreamObsolete.
Performs binary serialization on the serializable object and returns the serialized object as a stream.
Public methodStatic memberGetStringObsolete.
Performs XML serialization on the serializable object and returns the output as string.
Public Extension MethodGetValues Gets values of a SerializationInfo instance compatible with Linq operations.
Public methodStatic memberSerialize<T>(T, SerializationFormat) Serializes an Object.
Public methodStatic memberSerialize<T>(T, SerializationFormat, Stream) Serializes an Object.
Public methodStatic memberTryDeserialize<T>(Byte[], SerializationFormat, T) Attempts to deserialize a serialized Object.
Public methodStatic memberTryDeserialize<T>(Stream, SerializationFormat, T) Attempts to deserialize a serialized Object.
Public methodStatic memberTryGetObject(Byte[], Object)Obsolete.
Attempts binary deserialization on the byte array and returns the typed object for it.
Public methodStatic memberTryGetObject<T>(Byte[], T)Obsolete.
Attempts binary deserialization on the byte array and returns the typed object for it.
Public methodStatic memberTryGetObject<T>(String, T)Obsolete.
Attempts XML deserialization on the XML string and returns the typed object for it.
Top
Fields
 NameDescription
Public fieldStatic memberLegacyBinder Serialization binder used to deserialize files that were serialized using the old library frameworks (TVA Code Library, Time Series Framework, TVA.PhasorProtocols, and PMU Connection Tester) into classes in the Grid Solutions Framework.
Top
See Also

Reference

GSF Namespace