Search
Utilities.CompareStreams Method
See Also
 





Compares two streams. The streams should the buffered for performance. The streams are not closed.

Namespace: MindFusion
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static long CompareStreams (
    Stream s1,
    Stream s2
)

Visual Basic  Copy Code

Public Shared Function CompareStreams( _
    s1 As Stream, _
    s2 As Stream _
) As Long

 Parameters

s1

s2

 Return Value

Returns the index of the first different byte or -1 if files are equal.

 See Also