public override void ClearCache() { base.ClearCache(); _methodRange = null; _fieldRange = null; _propertyMap = null; _eventMap = null; _nestedClasses = null; _interfaces = null; _decltype = null; _genericparams = null; _baseType = null; }
public override void LoadCache() { base.LoadCache(); _methodRange = MemberRange.CreateRange <MethodDefinition>(this, 5, NETHeader.TablesHeap.GetTable(MetaDataTableType.Method, false)); _methodRange.LoadCache(); _fieldRange = MemberRange.CreateRange <FieldDefinition>(this, 4, NETHeader.TablesHeap.GetTable(MetaDataTableType.Field, false)); _fieldRange.LoadCache(); _propertyMap = PropertyMap; _eventMap = EventMap; _nestedClasses = NestedClasses; _interfaces = Interfaces; _decltype = DeclaringType as TypeDefinition; _genericparams = GenericParameters; _baseType = BaseType; }
private void UpdateEventMap(Workspace workspace, EventMap map) { map.MetaDataRow.Parts[0] = GetMemberIndex(workspace, map.Parent); // event list updated by MetaDataBuilder class }
public override void LoadCache() { base.LoadCache(); _methodRange = MemberRange.CreateRange<MethodDefinition>(this, 5, NETHeader.TablesHeap.GetTable(MetaDataTableType.Method, false)); _methodRange.LoadCache(); _fieldRange = MemberRange.CreateRange<FieldDefinition>(this, 4, NETHeader.TablesHeap.GetTable(MetaDataTableType.Field, false)); _fieldRange.LoadCache(); _propertyMap = PropertyMap; _eventMap = EventMap; _nestedClasses = NestedClasses; _interfaces = Interfaces; _decltype = DeclaringType as TypeDefinition; _genericparams = GenericParameters; _baseType = BaseType; }