internal MethodSpecification(MetadataReader reader, MethodSpecificationHandle handle) { Debug.Assert(reader != null); Debug.Assert(!handle.IsNil); _reader = reader; _rowId = handle.RowId; }
public MethodSpecification GetMethodSpecification(MethodSpecificationHandle handle) { return new MethodSpecification(this, handle); }
internal BlobHandle GetInstantiation(MethodSpecificationHandle handle) { int rowOffset = (handle.RowId - 1) * this.RowSize; return BlobHandle.FromOffset(this.Block.PeekHeapReference(rowOffset + _InstantiationOffset, _IsBlobHeapRefSizeSmall)); }
internal EntityHandle GetMethod(MethodSpecificationHandle handle) { int rowOffset = (handle.RowId - 1) * this.RowSize; return MethodDefOrRefTag.ConvertToHandle(this.Block.PeekTaggedReference(rowOffset + _MethodOffset, _IsMethodDefOrRefRefSizeSmall)); }
private Mapping<MethodSpecificationHandle> MapMethodSpecificationImpl(MethodSpecificationHandle handle) { throw new NotImplementedException(); }
public Mapping<MethodSpecificationHandle> MapMethodSpecification(MethodSpecificationHandle handle) { return _methodSpecifications.GetOrAdd(handle, MapMethodSpecificationImpl); }
/// <summary> /// Encodes <code>call</code> instruction and its operand. /// </summary> public void Call(MethodSpecificationHandle methodHandle) { OpCode(ILOpCode.Call); Token(methodHandle); }
internal Handle GetMethod(MethodSpecificationHandle handle) { int rowOffset = (int)(handle.RowId - 1) * this.RowSize; return MethodDefOrRefTag.ConvertToToken(this.Block.PeekTaggedReference(rowOffset + this.MethodOffset, this.IsMethodDefOrRefRefSizeSmall)); }