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