Click or drag to resize

Serialization Class

Common serialization related functions.
Inheritance Hierarchy
SystemObject
  GSFSerialization

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

The Serialization type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCloneObjectT Creates a clone of a serializable object.
Obsolete
Public methodStatic memberDeserializeT(Byte, SerializationFormat) Deserializes a serialized Object.
Public methodStatic memberDeserializeT(Stream, SerializationFormat) Deserializes a serialized Object.
Public methodStatic memberGetBytes Performs binary serialization on the serializable object and returns the output as byte array.
Obsolete
Public methodStatic memberGetObject(Byte) Performs binary deserialization on the byte array and returns the object for it.
Obsolete
Public methodStatic memberGetObjectT(Byte) Performs binary deserialization on the byte array and returns the typed object for it.
Obsolete
Public methodStatic memberGetObjectT(String) Performs XML deserialization on the XML string and returns the typed object for it.
Obsolete
Public Extension MethodGetOrDefaultT Gets SerializationInfo value for specified name; otherwise defaultValue.
Public methodStatic memberGetStream Performs binary serialization on the serializable object and returns the serialized object as a stream.
Obsolete
Public methodStatic memberGetString Performs XML serialization on the serializable object and returns the output as string.
Obsolete
Public Extension MethodGetValues Gets values of a SerializationInfo instance compatible with Linq operations.
Public methodStatic memberSerializeT(T, SerializationFormat) Serializes an Object.
Public methodStatic memberSerializeT(T, SerializationFormat, Stream) Serializes an Object.
Public methodStatic memberTryDeserializeT(Byte, SerializationFormat, T) Attempts to deserialize a serialized Object.
Public methodStatic memberTryDeserializeT(Stream, SerializationFormat, T) Attempts to deserialize a serialized Object.
Public methodStatic memberTryGetObject(Byte, Object) Attempts binary deserialization on the byte array and returns the typed object for it.
Obsolete
Public methodStatic memberTryGetObjectT(Byte, T) Attempts binary deserialization on the byte array and returns the typed object for it.
Obsolete
Public methodStatic memberTryGetObjectT(String, T) Attempts XML deserialization on the XML string and returns the typed object for it.
Obsolete
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