InvariantCultureSerializer
イノバリアント文化のイセリタイザ。
メソッド
public static SettingsStorage DeserializeInvariant(IFileSystem fileSystem, string fileName)
result = InvariantCultureSerializer.DeserializeInvariant(fileSystem, fileName)
指定したファイルからIFileSystem@ で保存を優先します。
- fileSystem
- ファイル システム。
- fileName
- ファイル名。
戻り値: 担当: 佐藤 宏
public static SettingsStorage DeserializeInvariant(string fileName)
result = InvariantCultureSerializer.DeserializeInvariant(fileName)
指定したファイルからストレージをデシリアライズします。
- fileName
- ファイル名。
戻り値: 担当: 佐藤 宏
public static SettingsStorage DeserializeInvariant(string fileName, IFileSystem fileSystem)
result = InvariantCultureSerializer.DeserializeInvariant(fileName, fileSystem)
指定したファイルからストレージをデシリアライズします。
- fileName
- ファイル名。
- fileSystem
- ファイル システム。
戻り値: 担当: 佐藤 宏
public static SettingsStorage DeserializeInvariant(byte[] data)
result = InvariantCultureSerializer.DeserializeInvariant(data)
指定したバイト配列からストレージをデシリアライズします。
- data
- データ。
戻り値: 担当: 佐藤 宏
public static ValueTask<SettingsStorage> DeserializeInvariantAsync(IFileSystem fileSystem, string fileName, CancellationToken cancellationToken)
result = InvariantCultureSerializer.DeserializeInvariantAsync(fileSystem, fileName, cancellationToken)
Deserialize storage from the specified file using IFileSystem.
- fileSystem
- File system.
- fileName
- File name.
- cancellationToken
- CancellationToken
戻り値: SettingsStorage
public static ValueTask<SettingsStorage> DeserializeInvariantAsync(string fileName, IFileSystem fileSystem, CancellationToken cancellationToken)
result = InvariantCultureSerializer.DeserializeInvariantAsync(fileName, fileSystem, cancellationToken)
Deserialize storage from the specified file.
- fileName
- File name.
- fileSystem
- File system.
- cancellationToken
- CancellationToken
戻り値: SettingsStorage
public static ValueTask<SettingsStorage> DeserializeInvariantAsync(byte[] data, CancellationToken cancellationToken)
result = InvariantCultureSerializer.DeserializeInvariantAsync(data, cancellationToken)
Deserialize storage from the specified byte array.
- data
- Data.
- cancellationToken
- CancellationToken
戻り値: SettingsStorage
public static ValueTask<T> DeserializeInvariantAsync<T>(string fileName, IFileSystem fileSystem, CancellationToken cancellationToken)
result = InvariantCultureSerializer.DeserializeInvariantAsync(fileName, fileSystem, cancellationToken)
Deserialize storage from the specified file.
- fileName
- File name.
- fileSystem
- File system.
- cancellationToken
- CancellationToken
public static T DeserializeInvariant<T>(string fileName, IFileSystem fileSystem)
result = InvariantCultureSerializer.DeserializeInvariant(fileName, fileSystem)
指定したファイルからストレージをデシリアライズします。
- fileName
- ファイル名。
- fileSystem
- ファイル システム。
public static void SerializeInvariant(SettingsStorage settings, IFileSystem fileSystem, string fileName, bool bom)
InvariantCultureSerializer.SerializeInvariant(settings, fileSystem, fileName, bom)
指定したストレージをIFileSystem@に連続してファイルへ変換します。
- settings
- 担当: 佐藤 宏
- fileSystem
- ファイル システム。
- fileName
- ファイル名。
- bom
- UTF8 BOMプレアブルを追加。
public static void SerializeInvariant(SettingsStorage settings, string fileName, bool bom)
InvariantCultureSerializer.SerializeInvariant(settings, fileName, bom)
指定したストレージをファイルへシリアライズします。
- settings
- 担当: 佐藤 宏
- fileName
- ファイル名。
- bom
- UTF8 BOMプレアブルを追加。
public static byte[] SerializeInvariant(IAsyncPersistable settings, bool bom)
result = InvariantCultureSerializer.SerializeInvariant(settings, bom)
Serialize the specified storage into byte array.
- settings
- IAsyncPersistable
- bom
- Add UTF8 BOM preamble.
public static byte[] SerializeInvariant(SettingsStorage settings, bool bom)
result = InvariantCultureSerializer.SerializeInvariant(settings, bom)
指定したストレージをバイト配列にシリアライズします。
- settings
- 担当: 佐藤 宏
- bom
- UTF8 BOMプレアブルを追加。
public static ValueTask SerializeInvariantAsync(SettingsStorage settings, IFileSystem fileSystem, string fileName, bool bom, CancellationToken cancellationToken)
result = InvariantCultureSerializer.SerializeInvariantAsync(settings, fileSystem, fileName, bom, cancellationToken)
Serialize the specified storage into file.
- settings
- SettingsStorage
- fileSystem
- File system.
- fileName
- File name.
- bom
- Add UTF8 BOM preamble.
- cancellationToken
- CancellationToken
戻り値: ValueTask
public static ValueTask<byte[]> SerializeInvariantAsync(IAsyncPersistable settings, bool bom, CancellationToken cancellationToken)
result = InvariantCultureSerializer.SerializeInvariantAsync(settings, bom, cancellationToken)
Serialize the specified settings into byte array.
- settings
- IAsyncPersistable
- bom
- Add UTF8 BOM preamble.
- cancellationToken
- CancellationToken
戻り値: Serialized data.
public static ValueTask<byte[]> SerializeInvariantAsync(SettingsStorage settings, bool bom, CancellationToken cancellationToken)
result = InvariantCultureSerializer.SerializeInvariantAsync(settings, bom, cancellationToken)
Serialize the specified storage into byte array.
- settings
- SettingsStorage
- bom
- Add UTF8 BOM preamble.
- cancellationToken
- CancellationToken
戻り値: Serialized data.