Example #1
0
        internal UnloadedArrayType(VirtualMachine virtualMachine, string signature)
            : base(virtualMachine, signature)
        {
            Contract.Requires(virtualMachine != null);
            Contract.Requires(!string.IsNullOrEmpty(signature));

            _componentSignature = Signature.Substring(1);
            _componentTypeName = SignatureHelper.DecodeTypeName(_componentSignature);
            _componentType = new UnloadedReferenceType(VirtualMachine, _componentSignature);
        }
        internal UnloadedArrayType(VirtualMachine virtualMachine, string signature)
            : base(virtualMachine, signature)
        {
            Contract.Requires(virtualMachine != null);
            Contract.Requires(!string.IsNullOrEmpty(signature));

            _componentSignature = Signature.Substring(1);
            _componentTypeName  = SignatureHelper.DecodeTypeName(_componentSignature);
            _componentType      = new UnloadedReferenceType(VirtualMachine, _componentSignature);
        }
Example #3
0
        public bool Equals(IReferenceType other)
        {
            UnloadedReferenceType otherType = other as UnloadedReferenceType;

            if (otherType == null)
            {
                return(false);
            }

            return(this.VirtualMachine.Equals(otherType.VirtualMachine) &&
                   this.Signature == otherType.Signature);
        }