Inheritance: IMemberSignature
示例#1
0
        public PropertySignature ReadPropertySignature(uint signature)
        {
            PropertySignature propertySig = null;
            using (BinaryReader reader = GetBlobReader(signature))
            {

                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;
                ReadCompressedUInt32(reader);
                propertySig.ReturnType = ReadTypeReference(reader, (ElementType)reader.ReadByte(), null);
            }
            return propertySig;
        }
 public override void ClearCache()
 {
     getmethod = null;
     setmethod = null;
     name = null;
     propertySig = null;
 }
示例#3
0
 public override void ClearCache()
 {
     _getMethod = null;
     _setMethod = null;
     _name = null;
     _propertySig = null;
 }
示例#4
0
 public override void LoadCache()
 {
     base.LoadCache();
     _getMethod = GetMethod;
     _setMethod = SetMethod;
     _name = Name;
     _propertySig = Signature;
 }
示例#5
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;
        }