internal StaticClassPropertyWithReflection(ITypeWithReflection declaringType, PropertyInfo property)
        {
            this.property = new PropertyWithReflection(declaringType, property);
            if (this.property.GetAccessor != null)
            {
                getAccessor = new StaticClassAccessorWithReflection(this, this.property.GetAccessor);
            }

            if (this.property.SetAccessor != null)
            {
                setAccessor = new StaticClassAccessorWithReflection(this, this.property.SetAccessor);
            }
        }
Beispiel #2
0
        internal ClassPropertyWithReflection(IInternalTypeWithReflection declaringType, PropertyInfo propertyInfo)
        {
            property           = new PropertyWithReflection(declaringType, propertyInfo);
            this.declaringType = declaringType;
            if (property.GetAccessor != null)
            {
                getAccessor = new ClassAccessorWithReflection(this, property.GetAccessor);
            }

            if (property.SetAccessor != null)
            {
                setAccessor = new ClassAccessorWithReflection(this, property.SetAccessor);
            }
        }
 internal ExplicitInterfacePropertyWithReflection(ITypeWithReflection declaringType, Type interfaceType, PropertyInfo property)
 {
     this.property     = new PropertyWithReflection(declaringType, property);
     explicitInterface = new InterfaceReferenceWithReflection(interfaceType);
 }