InvariantCultureSerializer
StockSharp.Configuration
Invariant culture ISerializer.
Methods
DeserializeInvariant
public static SettingsStorage DeserializeInvariant(IFileSystem fileSystem, string fileName)
result = InvariantCultureSerializer.DeserializeInvariant(fileSystem, fileName)
Deserialize storage from the specified file using IFileSystem.
- fileSystem
- File system.
- fileName
- File name.
Returns: SettingsStorage
DeserializeInvariant
public static SettingsStorage DeserializeInvariant(string fileName)
result = InvariantCultureSerializer.DeserializeInvariant(fileName)
Deserialize storage from the specified file.
- fileName
- File name.
Returns: SettingsStorage
DeserializeInvariant
public static SettingsStorage DeserializeInvariant(string fileName, IFileSystem fileSystem)
result = InvariantCultureSerializer.DeserializeInvariant(fileName, fileSystem)
Deserialize storage from the specified file.
- fileName
- File name.
- fileSystem
- File system.
Returns: SettingsStorage
DeserializeInvariant
public static SettingsStorage DeserializeInvariant(byte[] data)
result = InvariantCultureSerializer.DeserializeInvariant(data)
Deserialize storage from the specified byte array.
- data
- Data.
Returns: SettingsStorage
DeserializeInvariant``1
public static T DeserializeInvariant<T>(string fileName, IFileSystem fileSystem)
result = InvariantCultureSerializer.DeserializeInvariant(fileName, fileSystem)
Deserialize storage from the specified file.
- fileName
- File name.
- fileSystem
- File system.
SerializeInvariant
public static void SerializeInvariant(SettingsStorage settings, IFileSystem fileSystem, string fileName, bool bom)
InvariantCultureSerializer.SerializeInvariant(settings, fileSystem, fileName, bom)
Serialize the specified storage into file using IFileSystem.
- settings
- SettingsStorage
- fileSystem
- File system.
- fileName
- File name.
- bom
- Add UTF8 BOM preamble.
SerializeInvariant
public static void SerializeInvariant(SettingsStorage settings, string fileName, bool bom)
InvariantCultureSerializer.SerializeInvariant(settings, fileName, bom)
Serialize the specified storage into file.
- settings
- SettingsStorage
- fileName
- File name.
- bom
- Add UTF8 BOM preamble.
SerializeInvariant
public static byte[] SerializeInvariant(IPersistable settings, bool bom)
result = InvariantCultureSerializer.SerializeInvariant(settings, bom)
Serialize the specified storage into byte array.
- settings
- IPersistable
- bom
- Add UTF8 BOM preamble.
SerializeInvariant
public static byte[] SerializeInvariant(SettingsStorage settings, bool bom)
result = InvariantCultureSerializer.SerializeInvariant(settings, bom)
Serialize the specified storage into byte array.
- settings
- SettingsStorage
- bom
- Add UTF8 BOM preamble.