Files
2026-06-04 11:42:34 +02:00

46 lines
1.7 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace System.Reflection
{
/// <summary>Attaches a modifier to parameters so that binding can work with parameter signatures in which the types have been modified.</summary>
// Token: 0x02000263 RID: 611
[ComVisible(true)]
[Serializable]
public struct ParameterModifier
{
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.ParameterModifier" /> structure representing the specified number of parameters.</summary>
/// <param name="parameterCount">The number of parameters. </param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="parameterCount" /> is negative. </exception>
// Token: 0x06001FBA RID: 8122 RVA: 0x000743F8 File Offset: 0x000725F8
public ParameterModifier(int parameterCount)
{
if (parameterCount <= 0)
{
throw new ArgumentException("Must specify one or more parameters.");
}
this._byref = new bool[parameterCount];
}
/// <summary>Gets or sets a value that specifies whether the parameter at the specified index position is to be modified by the current <see cref="T:System.Reflection.ParameterModifier" />.</summary>
/// <returns>true if the parameter at this index position is to be modified by this <see cref="T:System.Reflection.ParameterModifier" />; otherwise, false.</returns>
/// <param name="index">The index position of the parameter whose modification status is being examined or set. </param>
// Token: 0x170005EF RID: 1519
public bool this[int index]
{
get
{
return this._byref[index];
}
set
{
this._byref[index] = value;
}
}
// Token: 0x04000AFE RID: 2814
private bool[] _byref;
}
}