示例#1
0
 /// <summary>
 /// Called to complete TermInfos creation. </summary>
 public void Dispose()
 {
     try
     {
         Output.Seek(4); // write size after format
         Output.WriteInt64(Size);
     }
     finally
     {
         try
         {
             Output.Dispose();
         }
         finally
         {
             if (!IsIndex)
             {
                 Other.Dispose();
             }
         }
     }
 }
示例#2
0
 /// <summary>
 /// Called to complete TermInfos creation. </summary>
 public void Dispose()
 {
     try
     {
         output.Seek(4); // write size after format
         output.WriteInt64(size);
     }
     finally
     {
         try
         {
             output.Dispose();
         }
         finally
         {
             if (!isIndex)
             {
                 other.Dispose();
             }
         }
     }
 }