StringExtensions..::..Compare Method (String, String, Boolean)

Compares the specified s2.

Namespace:  MichaelBrandonMorris.Extensions.PrimitiveExtensions
Assembly:  MichaelBrandonMorris.Extensions.PrimitiveExtensions (in MichaelBrandonMorris.Extensions.PrimitiveExtensions.dll)

Syntax


public static int Compare(
	string s1,
	string s2,
	bool ignoreCase
)
Public Shared Function Compare ( _
	s1 As String, _
	s2 As String, _
	ignoreCase As Boolean _
) As Integer
public:
static int^ Compare(
	String^ s1, 
	String^ s2, 
	bool^ ignoreCase
)

Parameters

s1
Type: String
The s1.
s2
Type: String
The s2.
ignoreCase
Type: Boolean
if set to true [ignore case].

Return Value

System.Int32.