Пример #1
0
 public FieldDefinition(ClassFile cf, FieldAccessFlags accessFlags, string name, string descriptor, string signature)
     : base(cf, name)
 {
     this.accessFlags = accessFlags;
     this.descriptor  = descriptor;
     fieldType        = Descriptors.ParseFieldType(descriptor);
     Signature        = (signature != null) ? Signatures.ParseFieldTypeSignature(signature) : fieldType;
 }
Пример #2
0
        /// <summary>
        /// Signals that all attributes have been loaded.
        /// </summary>
        void IModifiableAttributeProvider.AttributesLoaded()
        {
            var signatureAttributes = Attributes.OfType <SignatureAttribute>();

            Signature = signatureAttributes.Select(x => Signatures.ParseFieldTypeSignature(x.Value)).SingleOrDefault() ?? fieldType;
        }