WikiFunctions.UnifiedDiff.WriteUnifiedDiff C# (CSharp) Method

WriteUnifiedDiff() public static method

public static WriteUnifiedDiff ( Diff diff, TextWriter writer ) : void
diff Diff
writer System.IO.TextWriter
return void
        public static void WriteUnifiedDiff(Diff diff, TextWriter writer)
        {
            WriteUnifiedDiff(diff, writer, "Left", "Right", 2);
        }

Same methods

UnifiedDiff::WriteUnifiedDiff ( Diff diff, TextWriter writer, string fromfile, string tofile, int context ) : void
UnifiedDiff::WriteUnifiedDiff ( string leftFile, string rightFile, TextWriter writer, int context, bool caseSensitive, bool compareWhitespace ) : void
UnifiedDiff::WriteUnifiedDiff ( string leftLines, string leftName, string rightLines, string rightName, TextWriter writer, int context, bool caseSensitive, bool compareWhitespace ) : void

Usage Example

Esempio n. 1
0
 public override string ToString()
 {
     System.IO.StringWriter w = new System.IO.StringWriter();
     UnifiedDiff.WriteUnifiedDiff(this, w);
     return(w.ToString());
 }