Exemplo n.º 1
0
        /// <summary>
        /// Creates a strongly-typed QueryProperty of T
        /// </summary>
        /// <param name="propertyName">The name of the property.</param>
        /// <param name="propertyType">Type of the property.</param>
        /// <returns>Strongly typed QueryProperty of T.</returns>
        public static QueryProperty <QueryReferenceType> Create(string propertyName, QueryReferenceType propertyType)
        {
            ExceptionUtilities.CheckArgumentNotNull(propertyName, "propertyName");
            ExceptionUtilities.CheckArgumentNotNull(propertyType, "propertyType");

            return(new QueryProperty <QueryReferenceType>(propertyName, propertyType));
        }
Exemplo n.º 2
0
 internal QueryReferenceValue(QueryReferenceType type, QueryError evaluationError, IQueryEvaluationStrategy evaluationStrategy)
     : base(evaluationError, evaluationStrategy)
 {
     ExceptionUtilities.CheckArgumentNotNull(type, "type");
     this.Type = type;
 }