public void BeginDeserializeObject(CommandLineSerializer serializer, LinkedList <string> argList) { mOnBeginDeserializeObject(serializer, argList); }
public object?EndDeserializeObject(CommandLineSerializer serializer, LinkedList <string> argList) { return(mOnEndDeserializeObject(serializer, argList)); }
public IEnumerable <string> SerializeMultiValue(CommandLineSerializer serializer, Type objType, object?obj) { throw new NotSupportedException(); }
public void EndSerializeObject(CommandLineSerializer serializer, object?obj) { mOnEndSerializeObject(serializer, obj); }
public object?DeserializeMultiValue(CommandLineSerializer serializer, Type objType, List <string> values) { throw new NotSupportedException(); }
public bool SerializeNonValue(CommandLineSerializer serializer, Type objType, object?obj) { throw new NotSupportedException(); }
/// <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);
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(); }