Наследование: 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;
        }