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.177-beta
Syntax
public static class Serialization
View Source

The Serialization type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCloneObjectTObsolete.
Creates a clone of a serializable object.
Public methodStatic memberDeserializeT(Byte, SerializationFormat) Deserializes a serialized Object.
Public methodStatic memberDeserializeT(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 memberGetObjectT(Byte)Obsolete.
Performs binary deserialization on the byte array and returns the typed object for it.
Public methodStatic memberGetObjectT(String)Obsolete.
Performs XML deserialization on the XML string and returns the typed object for it.
Public Extension MethodGetOrDefaultT 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 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)Obsolete.
Attempts binary deserialization on the byte array and returns the typed object for it.
Public methodStatic memberTryGetObjectT(Byte, T)Obsolete.
Attempts binary deserialization on the byte array and returns the typed object for it.
Public methodStatic memberTryGetObjectT(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