GetHashCode() Method

Definition

Namespace CliInvoke.Core
Assembly CliInvoke.Core.dll

Returns the hash code for the current user credential.

public override int GetHashCode()

Returns

Int32
The hash code for the current user credential.

Remarks

The hash includes Domain, UserName, and LoadUserProfile only. Password participates in Equals(UserCredential?) content comparison but is intentionally excluded from the hash code to avoid unwrapping or hashing secret material. Distinct passwords with the same user and domain may share the same hash code.