public override void LoadCache() { _reference = Reference; }
private void UpdatePropertyDef(Workspace workspace, PropertyDefinition propertyDef) { propertyDef.MetaDataRow.Parts[1] = GetStringIndex(workspace, propertyDef.Name); // TODO: serialize blob. }
public override void ClearCache() { _reference = null; }
public PropertySignature ReadPropertySignature(uint signature, PropertyDefinition parentProperty) { PropertySignature propertySig = null; BlobSignatureReader reader; if (TryGetBlobReader(signature, out reader)) { using (reader) { reader.GenericContext = parentProperty.DeclaringType; byte flag = reader.ReadByte(); if ((flag & 8) == 0) throw new ArgumentException("Signature doesn't refer to a valid property signature."); propertySig = new PropertySignature(); propertySig.HasThis = (flag & 0x20) != 0; NETGlobals.ReadCompressedUInt32(reader); propertySig.ReturnType = reader.ReadTypeReference(); } } return propertySig; }