Class InvariantCultureSerializer
- Namespace
- StockSharp.Configuration
- Assembly
- StockSharp.Configuration.dll
Invariant culture 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
DeserializeInvariant(string)
Deserialize storage from the specified file.
public static SettingsStorage DeserializeInvariant(this string fileName)
Parameters
fileName
stringFile name.
Returns
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 IPersistable.
SerializeInvariant(IPersistable, bool)
Serialize the specified storage into byte array.
public static byte[] SerializeInvariant(this IPersistable settings, bool bom = true)
Parameters
settings
IPersistablebom
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
SettingsStoragebom
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)
Parameters
settings
SettingsStoragefileName
stringFile name.
bom
boolAdd UTF8 BOM preamble.