3 instantiations of ParameterHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
1281return new ParameterHandle(rowId); 1301return new ParameterHandle(handle.RowId); 1311return new ParameterHandle(handle.RowId);
91 references to ParameterHandle
Microsoft.CodeAnalysis (14)
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
379protected override ParameterHandle GetParameterHandle(IParameterDefinition def) 397protected override ParameterHandle GetFirstParameterHandle(IMethodDefinition methodDef) 1203var param = GetParameterHandle(paramDef);
MetadataReader\MetadataDecoder.cs (2)
71internal ParameterHandle Handle; // may be nil 1223foreach (var param in Module.GetParametersOfMethodOrThrow(methodDef))
MetadataReader\PEModule.cs (5)
3469ParameterHandle parameterDef, 3479internal string GetParamNameOrThrow(ParameterHandle parameterDef) 3486internal int GetParameterSequenceNumberOrThrow(ParameterHandle param) 3575internal ConstantValue GetParamDefaultValue(ParameterHandle param) 3632MetadataReader.GetParameter((ParameterHandle)fieldOrParameterToken).GetMarshallingDescriptor();
PEWriter\FullMetadataWriter.cs (2)
205protected override ParameterHandle GetParameterHandle(IParameterDefinition def) 230protected override ParameterHandle GetFirstParameterHandle(IMethodDefinition methodDef)
PEWriter\MetadataWriter.cs (2)
250protected abstract ParameterHandle GetParameterHandle(IParameterDefinition def); 277protected abstract ParameterHandle GetFirstParameterHandle(IMethodDefinition methodDef);
Microsoft.CodeAnalysis.CSharp (10)
Symbols\Metadata\PE\PEParameterSymbol.cs (7)
155private readonly ParameterHandle _handle; 223ParameterHandle handle, 240ParameterHandle handle, 383ParameterHandle handle, 429ParameterHandle handle, 505internal ParameterHandle Handle 792private static FlowAnalysisAnnotations DecodeFlowAnalysisAttributes(PEModule module, ParameterHandle handle)
Symbols\Metadata\PE\PEPropertySymbol.cs (3)
856var getHandle = getMethodParams[lastPropertyParamIndex].Handle; 857var setHandle = setMethodParams[lastPropertyParamIndex].Handle; 904ParameterHandle paramHandle;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenFunctionPointersTests.cs (2)
12715parameterList: default(ParameterHandle)); 12723parameterList: default(ParameterHandle));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests_WellKnownAttributes.cs (4)
1100var paramRow = metadataReader.GetParameter((ParameterHandle)constant.Parent); 1151foreach (var paramDef in methodDef.GetParameters()) 1189var paramRow = metadataReader.GetParameter((ParameterHandle)constant.Parent); 2429ParameterHandle[] ps = metadataReader.GetParameters().ToArray();
Microsoft.CodeAnalysis.Test.Utilities (2)
Metadata\MetadataReaderUtils.cs (1)
34internal static IEnumerable<ParameterHandle> GetParameters(this MetadataReader reader)
Metadata\MetadataValidation.cs (1)
110foreach (var paramHandle in methodDef.GetParameters())
Microsoft.CodeAnalysis.VisualBasic (8)
Symbols\Metadata\PE\PEParameterSymbol.vb (8)
27Private ReadOnly _handle As ParameterHandle 83handle As ParameterHandle, 104handle As ParameterHandle, 140handle As ParameterHandle, 158handle As ParameterHandle, 216handle As ParameterHandle, 239handle As ParameterHandle, 550Friend ReadOnly Property Handle As ParameterHandle
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\FieldInitializerBindingTests.vb (1)
1312Dim paramRow = reader.GetParameter(CType(constant.Parent, ParameterHandle))
System.Reflection.Emit (2)
System\Reflection\Emit\ModuleBuilderImpl.cs (2)
388ParameterHandle parameterHandle = AddParameter(parameter); 980private ParameterHandle AddParameter(ParameterBuilderImpl parameter) =>
System.Reflection.Metadata (43)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (4)
16/// <see cref="ParameterHandle"/>, 41/// <param name="handle"><see cref="ParameterHandle"/>, <see cref="FieldDefinitionHandle"/>, or <see cref="PropertyDefinitionHandle"/></param> 62/// <param name="handle"><see cref = "ParameterHandle" /> or <see cref="FieldDefinitionHandle"/></param> 143/// <see cref="ParameterHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (7)
659/// <param name="parent"><see cref="ParameterHandle"/>, <see cref="FieldDefinitionHandle"/>, or <see cref="PropertyDefinitionHandle"/></param> 718/// <see cref="ParameterHandle"/>, 799public ParameterHandle AddParameter(ParameterAttributes attributes, StringHandle name, int sequenceNumber) 813return ParameterHandle.FromRowId(_paramTable.Count); 916/// <param name="parent"><see cref="ParameterHandle"/> or <see cref="FieldDefinitionHandle"/>.</param> 991ParameterHandle parameterList) 1375/// <see cref="ParameterHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (2)
410public static ParameterHandle ParameterHandle(int rowNumber) 412return Metadata.ParameterHandle.FromRowId(ToRowId(rowNumber));
System\Reflection\Metadata\Internal\Tables.cs (5)
500internal ParameterHandle GetParamFor(int rowId) 503return ParameterHandle.FromRowId(this.Block.PeekReference(rowOffset + _ParamOffset, _IsParamTableRowRefSizeSmall)); 533internal ParameterAttributes GetFlags(ParameterHandle handle) 539internal ushort GetSequence(ParameterHandle handle) 545internal StringHandle GetName(ParameterHandle handle)
System\Reflection\Metadata\MetadataReader.cs (1)
1278public Parameter GetParameter(ParameterHandle handle)
System\Reflection\Metadata\TypeSystem\Constant.cs (1)
61/// The parent handle (<see cref="ParameterHandle"/>, <see cref="FieldDefinitionHandle"/>, or <see cref="PropertyDefinitionHandle"/>).
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (7)
1038public readonly struct ParameterHandleCollection : IReadOnlyCollection<ParameterHandle> 1067IEnumerator<ParameterHandle> IEnumerable<ParameterHandle>.GetEnumerator() 1077public struct Enumerator : IEnumerator<ParameterHandle>, IEnumerator 1096public ParameterHandle Current 1108return ParameterHandle.FromRowId((int)(_currentRowId & TokenTypeIds.RIDMask)); 1113private ParameterHandle GetCurrentParameterIndirect()
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (13)
1267public readonly struct ParameterHandle : IEquatable<ParameterHandle> 1279internal static ParameterHandle FromRowId(int rowId) 1284public static implicit operator Handle(ParameterHandle handle) 1289public static implicit operator EntityHandle(ParameterHandle handle) 1294public static explicit operator ParameterHandle(Handle handle) 1304public static explicit operator ParameterHandle(EntityHandle handle) 1324public static bool operator ==(ParameterHandle left, ParameterHandle right) 1331return obj is ParameterHandle && ((ParameterHandle)obj)._rowId == _rowId; 1334public bool Equals(ParameterHandle other) 1344public static bool operator !=(ParameterHandle left, ParameterHandle right)
System\Reflection\Metadata\TypeSystem\Parameter.cs (3)
15internal Parameter(MetadataReader reader, ParameterHandle handle) 24private ParameterHandle Handle 26get { return ParameterHandle.FromRowId(_rowId); }
System.Reflection.MetadataLoadContext (5)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (2)
48public static Parameter GetParameter(this ParameterHandle handle, MetadataReader reader) => reader.GetParameter(handle); 70public static int GetToken(this ParameterHandle handle) => MetadataTokens.GetToken(handle);
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
78foreach (ParameterHandle ph in methodDefinition.GetParameters())
System\Reflection\TypeLoading\Parameters\Ecma\EcmaFatMethodParameter.cs (2)
18private readonly ParameterHandle _handle; 20internal EcmaFatMethodParameter(IRoMethodBase roMethodBase, int position, Type parameterType, ParameterHandle handle)