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

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,
	CultureInfo culture
)
Public Shared Function Compare ( _
	s1 As String, _
	s2 As String, _
	ignoreCase As Boolean, _
	culture As CultureInfo _
) As Integer
public:
static int^ Compare(
	String^ s1, 
	String^ s2, 
	bool^ ignoreCase, 
	CultureInfo^ culture
)

Parameters

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

Return Value

System.Int32.