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

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,
	StringComparison comparisonType
)
Public Shared Function Compare ( _
	s1 As String, _
	s2 As String, _
	comparisonType As StringComparison _
) As Integer
public:
static int^ Compare(
	String^ s1, 
	String^ s2, 
	StringComparison^ comparisonType
)

Parameters

s1
Type: String
The s1.
s2
Type: String
The s2.
comparisonType
Type: StringComparison
Type of the comparison.

Return Value

System.Int32.