public override int GetHashCode() { if (credential != null) { return(credential.GetHashCode()); } else if (delegateManager != null) { return(delegateManager.GetHashCode()); } else { return(0); } }