コード例 #1
0
 public ParameterMetadata(JsonName name, Type type, int index, BindingStyle bindingStyle, bool isOptional)
 {
     Name         = name ?? throw new ArgumentNullException(nameof(name));
     Type         = type;
     Index        = index;
     BindingStyle = bindingStyle;
     IsOptional   = isOptional;
 }
コード例 #2
0
 public MethodMetadata(JsonRpcMethodOptions methodOptions, JsonName controller, JsonName action)
 {
     MethodOptions = methodOptions;
     Controller    = controller ?? throw new ArgumentNullException(nameof(controller));
     Action        = action ?? throw new ArgumentNullException(nameof(action));
 }