SecureStringExtensionsEqualsOrdinal(SecureString, SecureString, Boolean) Method

Determines whether two SecureString objects have the same characters in the same order, using ordinal comparison.

Definition

Namespace: DevCase.Extensions.SecureStringExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static bool EqualsOrdinal(
	this SecureString string1,
	SecureString string2,
	bool ignoreCase = false
)

Parameters

string1  SecureString
The first SecureString to compare.
string2  SecureString
The second SecureString to compare.
ignoreCase  Boolean  (Optional)
True to perform a case-insensitive comparison; otherwise, False.

Return Value

Boolean
True if the two SecureString objects are equal; otherwise, False.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SecureString. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also