Exemplo n.º 1
0
        public override string ToString()
        {
            switch (Type)
            {
            case ClaimType.DateTime:
                return(ValueAsDateTime.ToString());

            case ClaimType.Int:
                return(ValueAsInt.ToString());

            default:
                return(ValueAsString);
            }
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ItemId;
         hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FieldName != null ? FieldName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ValueAsString != null ? ValueAsString.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ValueAsDecimal.GetHashCode();
         hashCode = (hashCode * 397) ^ ValueAsDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ ValueAsBool.GetHashCode();
         return(hashCode);
     }
 }