Example #1
0
        // Token: 0x06000093 RID: 147 RVA: 0x00003EE8 File Offset: 0x000020E8
        public TreeNode CreateSubtree()
        {
            ScopeNode        scopeNode = null;
            RangeNode <long> rangeNode = new RangeNode <long>();

            rangeNode.StartInclusive = new bool?(true);
            rangeNode.Start          = this.CountMinimum;
            rangeNode.EndInclusive   = new bool?(true);
            rangeNode.End            = this.CountMaximum;
            ScopeNode scopeNode2 = new ScopeNode("ClassificationCount");

            scopeNode2.FirstChild = rangeNode;
            if (!this.isDefaultConfidenceRange)
            {
                RangeNode <long> rangeNode2 = new RangeNode <long>();
                rangeNode2.StartInclusive = new bool?(true);
                rangeNode2.Start          = this.ConfidenceMinimum;
                rangeNode2.EndInclusive   = new bool?(true);
                rangeNode2.End            = this.ConfidenceMaximum;
                scopeNode            = new ScopeNode("ClassificationConfidence");
                scopeNode.FirstChild = rangeNode2;
            }
            TreeNode treeNode;

            if (this.isDefaultConfidenceRange)
            {
                treeNode = scopeNode2;
            }
            else if (this.isDefaultCountRange)
            {
                treeNode = scopeNode;
            }
            else
            {
                AndNode andNode = new AndNode();
                andNode.AddNode(scopeNode2);
                andNode.AddNode(scopeNode);
                treeNode = andNode;
            }
            if (ULS.ShouldTrace(ULSCat.msoulscat_SEARCH_DataLossPrevention, 100))
            {
                ULS.SendTraceTag(6121180U, ULSCat.msoulscat_SEARCH_DataLossPrevention, 100, "ClassificationDecoding.CreateSubtree :: subtree={0}; Result of transforming the query.", new object[]
                {
                    treeNode
                });
            }
            return(treeNode);
        }