Inheritance: Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
Beispiel #1
0
        public AnalysisResults( GrammarEngine2 gren, IntPtr _hPack, bool release_handle )
        {
            hPack = new AnalysisResultsSafeHandle( _hPack, release_handle );
               nodes = new List<SyntaxTreeNode>();

               int n = SolarixGrammarEngineNET.GrammarEngine.sol_CountRoots( hPack.DangerousGetHandle(), 0 );
               for( int i = 0; i < n; ++i )
               {
            SyntaxTreeNode node = new SyntaxTreeNode( gren, SolarixGrammarEngineNET.GrammarEngine.sol_GetRoot( hPack.DangerousGetHandle(), 0, i ) );
            nodes.Add( node );
               }
        }
Beispiel #2
0
        public AnalysisResults(GrammarEngine2 gren, IntPtr _hPack, bool release_handle)
        {
            hPack = new AnalysisResultsSafeHandle(_hPack, release_handle);
            nodes = new List <SyntaxTreeNode>();

            int n = SolarixGrammarEngineNET.GrammarEngine.sol_CountRoots(hPack.DangerousGetHandle(), 0);

            for (int i = 0; i < n; ++i)
            {
                SyntaxTreeNode node = new SyntaxTreeNode(gren, SolarixGrammarEngineNET.GrammarEngine.sol_GetRoot(hPack.DangerousGetHandle(), 0, i));
                nodes.Add(node);
            }
        }