コード例 #1
0
        public override bool ContainsClaim(Claim claim)
        {
            if (claim == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claim");

            for (int i = 0; i < this.claims.Count; ++i)
            {
                if (claim.Equals(this.claims[i]))
                {
                    return true;
                }
            }
            return false;
        }
コード例 #2
0
 public override bool ContainsClaim(Claim claim)
 {
     if (claim == null)
     {
         throw System.IdentityModel.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claim");
     }
     for (int i = 0; i < this.claims.Count; i++)
     {
         if (claim.Equals(this.claims[i]))
         {
             return(true);
         }
     }
     return(false);
 }
コード例 #3
0
        public override bool ContainsClaim(Claim claim)
        {
            if (claim == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claim");
            }

            for (int i = 0; i < _claims.Count; ++i)
            {
                if (claim.Equals(_claims[i]))
                {
                    return(true);
                }
            }
            return(false);
        }