mscorlib(4.0.0.0) API with additions
ParameterModifier.cs
2 
3 namespace System.Reflection
4 {
7  [ComVisible(true)]
8  public struct ParameterModifier
9  {
10  private bool[] _byRef;
11 
12  internal bool[] IsByRefArray => _byRef;
13 
18  public bool this[int index]
19  {
20  get
21  {
22  return _byRef[index];
23  }
24  set
25  {
26  _byRef[index] = value;
27  }
28  }
29 
34  public ParameterModifier(int parameterCount)
35  {
36  if (parameterCount <= 0)
37  {
38  throw new ArgumentException(Environment.GetResourceString("Arg_ParmArraySize"));
39  }
40  _byRef = new bool[parameterCount];
41  }
42  }
43 }
Definition: __Canon.cs:3
Attaches a modifier to parameters so that binding can work with parameter signatures in which the typ...
Provides information about, and means to manipulate, the current environment and platform....
Definition: Environment.cs:21
The exception that is thrown when one of the arguments provided to a method is not valid.
ParameterModifier(int parameterCount)
Initializes a new instance of the T:System.Reflection.ParameterModifier structure representing the sp...
Specifies that the class can be serialized.