ReviewR.Web.Services.DiffConverter.WriteHunk C# (CSharp) Method

WriteHunk() private method

private WriteHunk ( DiffHunk arg ) : string
arg DiffHunk
return string
        private string WriteHunk(DiffHunk arg)
        {
            return String.Format(
                "@@ -{0},{1} +{2},{3} @@{4}",
                arg.OriginalLocation.Line,
                arg.OriginalLocation.Column,
                arg.ModifiedLocation.Line,
                arg.ModifiedLocation.Column,
                String.IsNullOrEmpty(arg.Comment) ? "" : (" " + arg.Comment)) +
                Environment.NewLine +
                String.Join(Environment.NewLine, arg.Lines.Select(WriteLine));
        }