public override void LoadCache() { base.LoadCache(); _paramRange = MemberRange.CreateRange <ParameterDefinition>(this, 5, NETHeader.TablesHeap.GetTable(MetaDataTableType.Param, false)); _semantics = Semantics; _body = Body; _genericParameters = GenericParameters; }
public override void ClearCache() { base.ClearCache(); _paramRange = null; _semantics = null; _body = null; _genericParameters = new GenericParameter[0]; _hasLoadedGenericParameters = false; }
public override void LoadCache() { base.LoadCache(); _paramRange = MemberRange.CreateRange<ParameterDefinition>(this, 5, NETHeader.TablesHeap.GetTable(MetaDataTableType.Param, false)); _semantics = Semantics; _body = Body; _genericParameters = GenericParameters; }
private void UpdateMethodSemantics(Workspace workspace, MethodSemantics semantics) { semantics.MetaDataRow.Parts[1] = GetMemberIndex(workspace, semantics.Method); semantics.MetaDataRow.Parts[2] = GetMemberIndex(workspace, Constructor.OriginalAssembly.NETHeader.TablesHeap.HasSemantics, semantics.Association); }