コード例 #1
0
 /// <summary>
 /// Creates a new custom UriCondition encoding a meta-condition
 /// </summary>
 public UriCondition(RESTarMetaCondition metaCondition, string valueLiteral)
 {
     if (metaCondition < RESTarMetaCondition.Unsafe || metaCondition > RESTarMetaCondition.Format)
     {
         throw new ArgumentOutOfRangeException(nameof(metaCondition));
     }
     Key           = metaCondition.ToString().ToLower();
     Operator      = Operator.EQUALS;
     ValueLiteral  = valueLiteral;
     ValueTypeCode = Type.GetTypeCode(metaCondition.GetExpectedType());
 }