Exemple #1
0
        public IEnumerable <int> GraphScan(String propertyIdString, ScanSpecification definition)
        {
            #region initial checks

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

            #endregion

            var propertyId = Convert.ToUInt16(propertyIdString);

            IComparable value = definition.Literal.FullQualifiedTypeName == null
                ? definition.Literal.Value
                : (IComparable)Convert.ChangeType(definition.Literal.Value,
                                                  Type.GetType(definition.Literal.FullQualifiedTypeName, true,
                                                               true));

            List <AGraphElement> graphElements;
            return(_fallen8.GraphScan(out graphElements, propertyId, value, definition.Operator)
                       ? CreateResult(graphElements, definition.ResultType)
                       : Enumerable.Empty <Int32>());
        }