public ParameterWrapper(ActionBinder binder, ParameterInfo info)
     : this(binder, info, info.ParameterType, SymbolId.Empty, false, false, false)
 {
     _prohibitNull = CompilerHelpers.ProhibitsNull(info);
     _isParams     = CompilerHelpers.IsParamArray(info);
     _isParamsDict = BinderHelpers.IsParamDictionary(info);
     if (_isParams || _isParamsDict)
     {
         // params arrays & dictionaries don't allow assignment by keyword
         _name = SymbolTable.StringToId("<unknown>");
     }
     else
     {
         _name = SymbolTable.StringToId(info.Name ?? "<unknown>");
     }
 }
Exemple #2
0
 /// <summary>
 /// Type and whether the parameter is a params-array or params-dictionary is derived from info.
 /// </summary>
 public SimpleArgBuilder(ParameterInfo info, int index)
     : this(info, info.ParameterType, index, CompilerHelpers.IsParamArray(info), BinderHelpers.IsParamDictionary(info))
 {
 }