示例#1
0
        public static SignaturePart Sequence([ItemNotNull][NotNull] IEnumerable <SignaturePart> parts, [CanBeNull] string name = null)
        {
            var result = SequencePart.From(parts);

            result.Name = name;
            return(result);
        }
示例#2
0
 protected override JObject Visit(SequencePart part)
 {
     return(new JObject
     {
         ["$seq"] = new JArray(part.Parts.Select(p => p.AcceptForValue(this)))
     });
 }
示例#3
0
 public void Visit(SequencePart part)
 {
     VisitWithDelimiter(part.Parts, " ");
 }
示例#4
0
 void ISignatureVisitor.Visit(SequencePart part) => result = Visit(part);
示例#5
0
 protected abstract T Visit([NotNull] SequencePart part);