Class InvariantCultureSerializer
- Namespace
- StockSharp.Configuration
- Assembly
- StockSharp.Configuration.dll
Invariant culture Ecng.Serialization.ISerializer.
public static class InvariantCultureSerializer
- Inheritance
-
InvariantCultureSerializer
- Inherited Members
Methods
DeserializeInvariant(byte[])
Deserialize storage from the specified byte array.
public static SettingsStorage DeserializeInvariant(this byte[] data)
Parameters
data
byte[]Data.
Returns
- SettingsStorage
Ecng.Serialization.SettingsStorage
DeserializeInvariant(string)
Deserialize storage from the specified file.
public static SettingsStorage DeserializeInvariant(this string fileName)
Parameters
fileName
stringFile name.
Returns
- SettingsStorage
Ecng.Serialization.SettingsStorage
DeserializeInvariant<T>(string)
Deserialize storage from the specified file.
public static T DeserializeInvariant<T>(this string fileName)
Parameters
fileName
stringFile name.
Returns
- T
T
Type Parameters
T
Type implemented Ecng.Serialization.IPersistable.
SerializeInvariant(IPersistable, bool)
Serialize the specified storage into byte array.
public static byte[] SerializeInvariant(this IPersistable settings, bool bom = true)
Parameters
settings
IPersistableEcng.Serialization.IPersistable
bom
boolAdd UTF8 BOM preamble.
Returns
- byte[]
SerializeInvariant(SettingsStorage, bool)
Serialize the specified storage into byte array.
public static byte[] SerializeInvariant(this SettingsStorage settings, bool bom = true)
Parameters
settings
SettingsStorageEcng.Serialization.SettingsStorage
bom
boolAdd UTF8 BOM preamble.
Returns
- byte[]
SerializeInvariant(SettingsStorage, string, bool)
Serialize the specified storage into file.
public static void SerializeInvariant(this SettingsStorage settings, string fileName, bool bom = true)