Example #1
0
 protected MethodsBaseComponent(ICacheComponent cacher, IPropertyComponent properties, Members <T> collection)
 {
     _properties        = properties;
     _collection        = collection;
     _queryStore        = cacher.Memoize <Type, object, IEnumerable <T> >((o, a) => Query(this, o, a));
     _flaggedQueryStore = cacher.Memoize <Type, object, BindingFlags, IEnumerable <T> >((o, a, f) => Query(this, o, a, f));
 }
Example #2
0
        public Object(
            IPropertyComponent property,
            IMethodComponent method,
            IFieldComponent field,
            IConstructorComponent constructor,
            ITransposeComponent transformation,
            IAttributeComponent attribute,
            IDynamicComponent dynamicComponent,
            IEqualityComponent equality)
        {
            if (property == null)
            {
                throw new ArgumentNullException("property");
            }

            if (method == null)
            {
                throw new ArgumentNullException("method");
            }

            if (field == null)
            {
                throw new ArgumentNullException("field");
            }

            if (constructor == null)
            {
                throw new ArgumentNullException("constructor");
            }

            if (transformation == null)
            {
                throw new ArgumentNullException("transformation");
            }

            if (attribute == null)
            {
                throw new ArgumentNullException("attribute");
            }

            if (dynamicComponent == null)
            {
                throw new ArgumentNullException("dynamicComponent");
            }

            if (equality == null)
            {
                throw new ArgumentNullException("equality");
            }

            _property       = property;
            _field          = field;
            _method         = method;
            _transformation = transformation;
            _constructor    = constructor;
            _attribute      = attribute;
            _dynamic        = dynamicComponent;
            _equality       = equality;
        }
Example #3
0
 public DynamicComponent(IPropertyComponent property)
 {
     _property = property;
 }
Example #4
0
 public EqualityComponent()
 {
     _property = new PropertyComponent();
 }
Example #5
0
 public EqualityComponent(IPropertyComponent property)
 {
     _property = property;
 }
Example #6
0
		public DynamicComponent(IPropertyComponent property)
		{
			_property = property;
		}
Example #7
0
 public TransposeComponent(IPropertyComponent property)
 {
     _property = property;
 }
Example #8
0
 public ConstructorComponent(ICacheComponent cacher, IPropertyComponent properties)
     : base(cacher, properties, new Members <ConstructorInfo>(null, BindingFlags.Instance | BindingFlags.Public))
 {
 }