Beispiel #1
0
 /// <summary>
 /// Add a generic argument to the end of the list.
 /// </summary>
 public void AddGenericArgument(NetTypeReference argument, TypeNameMap typeNameMap)
 {
     if (argument.IsVoid())
     {
         argument = typeNameMap.Object;
     }
     genericArguments.Add(argument);
 }
Beispiel #2
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public NetParameterDefinition(string name, NetTypeReference type, bool isParams)
 {
     if (type.IsVoid())
     {
         throw new ArgumentException("type cannot be void");
     }
     this.name     = Keywords.IsKeyword(name) ? "@" + name : name;
     this.type     = type;
     this.isParams = isParams;
     if (isParams && !(type is NetArrayType))
     {
         throw new ArgumentException("Params parameter must have array type");
     }
 }