public List<int> GetLinks( int id_entry, int link_type )
{
List<int> res = new List<int>();
IntPtr hList = GrammarEngine.sol_ListLinksTxt( _hEngine, id_entry, link_type, 0 );
if( hList != IntPtr.Zero )
{
int n = GrammarEngine.sol_LinksInfoCount( _hEngine, hList );
for( int i = 0; i < n; ++i )
{
int id_entry2 = GrammarEngine.sol_LinksInfoEKey2( _hEngine, hList, i );
res.Add( id_entry2 );
}
GrammarEngine.sol_DeleteLinksInfo( _hEngine, hList );
}
return res;
}