// Constructors internal EnumerationContext(Session session, ParameterContext parameterContext, EnumerationContextOptions options = default) { Session = session; this.parameterContext = parameterContext; this.options = options; }
/// <summary> /// Checks whenever the specified option set is enable for this context. /// </summary> /// <param name="requiredOptions">The options to check.</param> /// <returns><see langword="true"/> if the speicifed options set is enable in this context; /// otherwise, <see langword="false"/>.</returns> public bool CheckOptions(EnumerationContextOptions requiredOptions) { return((Options & requiredOptions) == requiredOptions); }
// Constructors internal EnumerationContext(Session session, EnumerationContextOptions options) { Session = session; this.options = options; }