src/SyncTool.Git/main/Synchronization/Conflicts/ConflictInfoFile.cs
/// <summary>
/// Loads a <see cref="ConflictInfoFile"/> written out into a file 
/// </summary>
Loads a  written out into a file
Loads a written out into a file
public static ConflictInfoFile Load(IDirectory parentDirectory, IReadableFile file)
        {
            if (file == null)
                throw new ArgumentNullException(nameof(file));
            if (!file.Name.EndsWith(FileNameSuffix, StringComparison.InvariantCultureIgnoreCase))
                throw new ArgumentException($"File name Name must end with {FileNameSuffix}", nameof(file));
            using (var stream = file.OpenRead())
            {
                return new ConflictInfoFile(parentDirectory, file.Name, stream.Deserialize<ConflictInfo>());
            }
        }
public static ConflictInfoFile Load ( IDirectory parentDirectory , IReadableFile file ) { if ( file == null ) throw new ArgumentNullException ( nameof ( file ) ) ; if ( ! file . Name . EndsWith ( FileNameSuffix , StringComparison . InvariantCultureIgnoreCase ) ) throw new ArgumentException ( $" File name Name must end with  { FileNameSuffix } " , nameof ( file ) ) ; using ( var stream = file . OpenRead ( ) ) { return new ConflictInfoFile ( parentDirectory , file . Name , stream . Deserialize < ConflictInfo > ( ) ) ; } }
Loads a  written out into a file
Loads a written out into a file
parentDirectory
IDirectory
file
IReadableFile