Inheritance: MemberReference
示例#1
0
 public override void LoadCache()
 {
     _reference = Reference;
 }
示例#2
0
 private void UpdatePropertyDef(Workspace workspace, PropertyDefinition propertyDef)
 {
     propertyDef.MetaDataRow.Parts[1] = GetStringIndex(workspace, propertyDef.Name);
     // TODO: serialize blob.
 }
示例#3
0
 public override void ClearCache()
 {
     _reference = null;
 }
示例#4
0
        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;
        }