コード例 #1
0
 public void BeginDeserializeObject(CommandLineSerializer serializer, LinkedList <string> argList)
 {
     mOnBeginDeserializeObject(serializer, argList);
 }
コード例 #2
0
 public object?EndDeserializeObject(CommandLineSerializer serializer, LinkedList <string> argList)
 {
     return(mOnEndDeserializeObject(serializer, argList));
 }
コード例 #3
0
 public IEnumerable <string> SerializeMultiValue(CommandLineSerializer serializer, Type objType, object?obj)
 {
     throw new NotSupportedException();
 }
コード例 #4
0
 public void EndSerializeObject(CommandLineSerializer serializer, object?obj)
 {
     mOnEndSerializeObject(serializer, obj);
 }
コード例 #5
0
 public object?DeserializeMultiValue(CommandLineSerializer serializer, Type objType, List <string> values)
 {
     throw new NotSupportedException();
 }
コード例 #6
0
 public bool SerializeNonValue(CommandLineSerializer serializer, Type objType, object?obj)
 {
     throw new NotSupportedException();
 }
コード例 #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);
コード例 #8
0
 public object?DeserializeNonValue(CommandLineSerializer serializer, Type objType, bool matched)
 {
     throw new NotSupportedException();
 }
コード例 #9
0
 public IEnumerable <string> SerializeMultiValue(CommandLineSerializer serializer, Type objType, object?obj)
 {
     throw new InvalidOperationException();
 }
コード例 #10
0
 public object?DeserializeMultiValue(CommandLineSerializer serializer, Type objType, List <string> values)
 {
     throw new InvalidOperationException();
 }
コード例 #11
0
 public object?DeserializeSingleValue(CommandLineSerializer serializer, Type objType, string?value)
 {
     return(string.IsNullOrWhiteSpace(value) ? 0 : int.Parse(value));
 }
コード例 #12
0
 public object?DeserializeNonValue(CommandLineSerializer serializer, Type objType, bool matched)
 {
     return(matched ? 1 : 0);
 }
コード例 #13
0
 public object?DeserializeNonValue(CommandLineSerializer serializer, Type objType, bool matched)
 {
     throw new InvalidOperationException();
 }