コード例 #1
0
ファイル: JsonMatcher.cs プロジェクト: defrag/NMatcher
        private Result MatchPair(JsonPair pair)
        {
            if (pair.Expected != null && ExpressionMatcher.MatcherRegex.IsMatch(pair.Expected.ToString()))
            {
                return(_expressionMatcher.MatchExpression(pair.Actual, pair.Expected.ToString()));
            }

            return(pair.IsEqual ? Result.Success() : Result.Failure(FormatError(pair.Actual, pair.Expected, pair.Path)));
        }
コード例 #2
0
ファイル: JsonObject.cs プロジェクト: GlenDC/hjson-cs
 /// <summary>Adds a new item.</summary>
 public void Add(JsonPair pair)
 {
     Add(pair.Key, pair.Value);
 }
コード例 #3
0
ファイル: JsonObject.cs プロジェクト: GlenDC/hjson-cs
 void ICollection <JsonPair> .Add(JsonPair item)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
ファイル: JsonObject.cs プロジェクト: GlenDC/hjson-cs
 bool ICollection <JsonPair> .Remove(JsonPair item)
 {
     return((map as ICollection <JsonPair>).Remove(item));
 }
コード例 #5
0
ファイル: JsonObject.cs プロジェクト: GlenDC/hjson-cs
 bool ICollection <JsonPair> .Contains(JsonPair item)
 {
     return((map as ICollection <JsonPair>).Contains(item));
 }
コード例 #6
0
 void ICollection <JsonPair> .Add(JsonPair item)
 {
     this.Add(item);
 }
コード例 #7
0
ファイル: KqlSyntaxVisitor.cs プロジェクト: tatecksi/KqlTools
 public override T VisitJsonPair(JsonPair node)
 {
     throw new NotImplementedException();
 }