diff --git a/ObservatoryFramework/EventArgs.cs b/ObservatoryFramework/EventArgs.cs index fdef8be..0a38c96 100644 --- a/ObservatoryFramework/EventArgs.cs +++ b/ObservatoryFramework/EventArgs.cs @@ -102,7 +102,7 @@ namespace Observatory.Framework /// A boolean; True iff the state provided represents a batch-mode read. public static bool IsBatchRead(LogMonitorState state) { - return (state & (LogMonitorState.Batch | LogMonitorState.PreRead)) > 0; + return state.HasFlag(LogMonitorState.Batch) || state.HasFlag(LogMonitorState.PreRead); } } }