public override void LoadCache() { base.LoadCache(); _getMethod = GetMethod; _setMethod = SetMethod; _name = Name; _propertySig = Signature; }
public static MethodBody FromMethod(MethodDefinition methodDef) { MethodBody body = new MethodBody(); body.Method = methodDef; body._reader = new NETMethodReader(methodDef._netheader._assembly._peImage, body); if (body.IsFat) body._reader.ReadFatMethod(); return body; }
public override void LoadCache() { _method = Method; _association = Association; }
public override void ClearCache() { _getMethod = null; _setMethod = null; _name = null; _propertySig = null; }
public MethodSemantics(MethodDefinition method, MetaDataMember association, MethodSemanticsAttributes attributes) : base(new MetaDataRow((uint)attributes, method.TableIndex, (uint)0)) { this._method = method; this._association = association; }
public override void ClearCache() { _method = null; _association = null; }
public override void LoadCache() { _reference = Reference; }
public override void ClearCache() { _reference = null; }
public override void LoadCache() { _addmethod = AddMethod; _removemethod = RemoveMethod; _name = Name; _eventType = EventType; }
public override void ClearCache() { _addmethod = null; _removemethod = null; _name = null; _eventType = null; }
public VariableDefinition[] ReadVariableSignature(uint signature, MethodDefinition parentMethod) { VariableDefinition[] variables = null; BlobSignatureReader reader; if (TryGetBlobReader(signature, parentMethod, out reader)) { using (reader) { reader.GenericContext = parentMethod; byte local_sig = reader.ReadByte(); if (local_sig != 0x7) throw new ArgumentException("Signature doesn't refer to a valid local variable signature"); uint count = NETGlobals.ReadCompressedUInt32(reader); if (count == 0) return null; variables = new VariableDefinition[count]; for (int i = 0; i < count; i++) variables[i] = new VariableDefinition(i, reader.ReadTypeReference()); } } return variables; }