InvariantCultureSerializer

StockSharp.Configuration

异相文化 异相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相

方法

DeserializeInvariant
public static SettingsStorage DeserializeInvariant(IFileSystem fileSystem, string fileName)
result = InvariantCultureSerializer.DeserializeInvariant(fileSystem, fileName)

使用 IFileSystem 将指定的文件的存储去序列化 。

fileSystem
文件系统。
fileName
档案名.

返回值: SettingsStorage

DeserializeInvariant
public static SettingsStorage DeserializeInvariant(string fileName)
result = InvariantCultureSerializer.DeserializeInvariant(fileName)

从指定的文件中去序列化存储 。

fileName
档案名.

返回值: SettingsStorage

DeserializeInvariant
public static SettingsStorage DeserializeInvariant(string fileName, IFileSystem fileSystem)
result = InvariantCultureSerializer.DeserializeInvariant(fileName, fileSystem)

从指定的文件中去序列化存储 。

fileName
档案名.
fileSystem
文件系统。

返回值: SettingsStorage

DeserializeInvariant
public static SettingsStorage DeserializeInvariant(byte[] data)
result = InvariantCultureSerializer.DeserializeInvariant(data)

从指定的字节数组中去序列化存储 。

data
数据。

返回值: SettingsStorage

DeserializeInvariant``1
public static T DeserializeInvariant<T>(string fileName, IFileSystem fileSystem)
result = InvariantCultureSerializer.DeserializeInvariant(fileName, fileSystem)

从指定的文件中去序列化存储 。

fileName
档案名.
fileSystem
文件系统。
SerializeInvariant
public static void SerializeInvariant(SettingsStorage settings, IFileSystem fileSystem, string fileName, bool bom)
InvariantCultureSerializer.SerializeInvariant(settings, fileSystem, fileName, bom)

使用 IFileSystem 将指定的存储序列化为文件 。

settings
SettingsStorage
fileSystem
文件系统。
fileName
档案名.
bom
添加 UTF8 BOM 序言.
SerializeInvariant
public static void SerializeInvariant(SettingsStorage settings, string fileName, bool bom)
InvariantCultureSerializer.SerializeInvariant(settings, fileName, bom)

将指定的存储序列化为文件 。

settings
SettingsStorage
fileName
档案名.
bom
添加 UTF8 BOM 序言.
SerializeInvariant
public static byte[] SerializeInvariant(IPersistable settings, bool bom)
result = InvariantCultureSerializer.SerializeInvariant(settings, bom)

将指定的存储序列化为字节数组 。

settings
可执行
bom
添加 UTF8 BOM 序言.
SerializeInvariant
public static byte[] SerializeInvariant(SettingsStorage settings, bool bom)
result = InvariantCultureSerializer.SerializeInvariant(settings, bom)

将指定的存储序列化为字节数组 。

settings
SettingsStorage
bom
添加 UTF8 BOM 序言.