Exemple #1
0
 /// <summary>
 /// Sets the stored value.
 /// </summary>
 /// <param name="analyzer"> Analyzer </param>
 /// <param name="storedValue"> Value to store </param>
 /// <exception cref="ObjectDisposedException"> if the <see cref="Analyzer"/> is closed. </exception>
 protected internal static void SetStoredValue(Analyzer analyzer, object storedValue) // LUCENENET: CA1822: Mark members as static
 {
     if (analyzer.storedValue is null)
     {
         throw AlreadyClosedException.Create(analyzer.GetType().FullName, "this Analyzer is disposed.");
     }
     analyzer.storedValue.Value = storedValue;
 }
Exemple #2
0
 /// <summary>
 /// Sets the stored value.
 /// </summary>
 /// <param name="analyzer"> Analyzer </param>
 /// <param name="storedValue"> Value to store </param>
 /// <exception cref="ObjectDisposedException"> if the <see cref="Analyzer"/> is closed. </exception>
 protected internal static void SetStoredValue(Analyzer analyzer, object storedValue) // LUCENENET: CA1822: Mark members as static
 {
     if (analyzer.storedValue == null)
     {
         throw new ObjectDisposedException(analyzer.GetType().FullName, "this Analyzer is closed");
     }
     analyzer.storedValue.Value = storedValue;
 }