Click or drag to resize

ExtensionsSecureStringIsEqualTo Method

Compares two SecureString for equality

Namespace:  Cauldron
Assembly:  Cauldron.Cryptography (in Cauldron.Cryptography.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static bool IsEqualTo(
	this SecureString a,
	SecureString b
)

Parameters

a
Type: System.SecuritySecureString
The first SecureString to compare
b
Type: System.SecuritySecureString
The second SecureString to compare

Return Value

Type: Boolean
Returns true if the SecureString s 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).
Exceptions
ExceptionCondition
ArgumentNullExceptiona is null
ArgumentNullExceptionb is null
See Also