/// <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; }
/// <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; }