internal ExplicitInterfacePropertyWithMonoCecil(ITypeWithMonoCecil declaringType, PropertyDefinition property)
        {
            this.property = new PropertyWithMonoCecil(declaringType, property);
            name          = property.Name.Split('.').Last();
            TypeReference interfaceType = property.Method().FindExplicitInterface();

            explicitInterface = new InterfaceReferenceWithMonoCecil(declaringType.Assembly, interfaceType);
        }
        internal StaticClassPropertyWithMonoCecil(ITypeWithMonoCecil declaringType, PropertyDefinition property)
        {
            this.property = new PropertyWithMonoCecil(declaringType, property);
            if (this.property.GetAccessor != null)
            {
                getAccessor = new StaticClassAccessorWithMonoCecil(this, this.property.GetAccessor);
            }

            if (this.property.SetAccessor != null)
            {
                setAccessor = new StaticClassAccessorWithMonoCecil(this, this.property.SetAccessor);
            }
        }
Exemple #3
0
        internal SealedClassPropertyWithMonoCecil(IInternalTypeWithMonoCecil declaringType, PropertyDefinition property)
        {
            this.property      = new PropertyWithMonoCecil(declaringType, property);
            this.declaringType = declaringType;
            if (this.property.GetAccessor != null)
            {
                getAccessor = new ClassAccessorWithMonoCecil(this, this.property.GetAccessor);
            }

            if (this.property.SetAccessor != null)
            {
                setAccessor = new ClassAccessorWithMonoCecil(this, this.property.SetAccessor);
            }
        }