Exemplo n.º 1
0
 public void BeginDeserializeObject(CommandLineSerializer serializer, LinkedList <string> argList)
 {
     mOnBeginDeserializeObject(serializer, argList);
 }
Exemplo n.º 2
0
 public object?EndDeserializeObject(CommandLineSerializer serializer, LinkedList <string> argList)
 {
     return(mOnEndDeserializeObject(serializer, argList));
 }
Exemplo n.º 3
0
 public IEnumerable <string> SerializeMultiValue(CommandLineSerializer serializer, Type objType, object?obj)
 {
     throw new NotSupportedException();
 }
Exemplo n.º 4
0
 public void EndSerializeObject(CommandLineSerializer serializer, object?obj)
 {
     mOnEndSerializeObject(serializer, obj);
 }
Exemplo n.º 5
0
 public object?DeserializeMultiValue(CommandLineSerializer serializer, Type objType, List <string> values)
 {
     throw new NotSupportedException();
 }
Exemplo n.º 6
0
 public bool SerializeNonValue(CommandLineSerializer serializer, Type objType, object?obj)
 {
     throw new NotSupportedException();
 }
Exemplo n.º 7
0
 /// <summary>
 /// 调用函数
 /// </summary>
 /// <param name="serializer">命令行反序列器</param>
 /// <param name="methodSpecs">函数的参数说明</param>
 /// <param name="obj">调用函数时的this对象</param>
 /// <param name="argList">命令行参数,本集合会被修改,调用完毕后集合内是剩余的命令行参数</param>
 /// <returns>函数返回值</returns>
 public static object?InvokeMethod(
     CommandLineSerializer serializer,
     MethodSpecs methodSpecs,
     object?obj,
     LinkedList <string> argList)
 => InvokeMethod(serializer, methodSpecs, obj, argList, null);
Exemplo n.º 8
0
 public object?DeserializeNonValue(CommandLineSerializer serializer, Type objType, bool matched)
 {
     throw new NotSupportedException();
 }
 public IEnumerable <string> SerializeMultiValue(CommandLineSerializer serializer, Type objType, object?obj)
 {
     throw new InvalidOperationException();
 }
 public object?DeserializeMultiValue(CommandLineSerializer serializer, Type objType, List <string> values)
 {
     throw new InvalidOperationException();
 }
 public object?DeserializeSingleValue(CommandLineSerializer serializer, Type objType, string?value)
 {
     return(string.IsNullOrWhiteSpace(value) ? 0 : int.Parse(value));
 }
 public object?DeserializeNonValue(CommandLineSerializer serializer, Type objType, bool matched)
 {
     return(matched ? 1 : 0);
 }
 public object?DeserializeNonValue(CommandLineSerializer serializer, Type objType, bool matched)
 {
     throw new InvalidOperationException();
 }