示例#1
0
        MIListElement ParseListElement(MIListElementType type, string response, int beginIndex, out int endIndex)
        {
            switch (type)
            {
            case MIListElementType.Value:
                return(ParseValue(response, beginIndex, out endIndex));

            case MIListElementType.Result:
                return(ParseResult(response, beginIndex, out endIndex));
            }

            throw new MIParserException();
        }
示例#2
0
 public MIList(List <MIListElement> elements, MIListElementType elementType)
     : base(MIValueType.List)
 {
     ElementsType = elementType;
     Elements     = elements;
 }
示例#3
0
 public MIListElement(MIListElementType type)
 {
     ElementType = type;
 }