public FieldExpression(
     [NotNull] string name,
     [NotNull] IProperty property,
     [NotNull] CollectionExpression collectionExpression)
     : this(name, Check.NotNull(property, nameof(property)).ClrType, collectionExpression)
 {
     _property = property;
 }
        public FieldExpression(
            [NotNull] string name,
            [NotNull] Type type,
            [NotNull] CollectionExpression collectionExpression)
        {
            Check.NotEmpty(name, nameof(name));
            Check.NotNull(type, nameof(type));
            Check.NotNull(collectionExpression, nameof(collectionExpression));

            Name = name;
            Type = type;
            _collectionExpression = collectionExpression;
        }
示例#3
0
        public virtual void SetCollectionExpression([NotNull] CollectionExpression expression)
        {
            Check.NotNull(expression, nameof(expression));

            _collection = expression;
        }