public void Add(ConsentSecurityPolicy policy) { if (_Policies.Any(p => p.Name == policy.Name && p.Value == policy.Name)) { return; } _Policies.Add(policy); }
public override bool Equals(object obj) { ConsentSecurityPolicy item = obj as ConsentSecurityPolicy; if (item == null) { return(false); } return(GetHashCode().Equals(item.GetHashCode())); }
public void Add(ConsentSecurityPolicy policy) { _Policies.Add(policy); }