// Constructors

        internal EnumerationContext(Session session, ParameterContext parameterContext, EnumerationContextOptions options = default)
        {
            Session = session;

            this.parameterContext = parameterContext;
            this.options          = options;
        }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
        // Constructors

        internal EnumerationContext(Session session, EnumerationContextOptions options)
        {
            Session = session;

            this.options = options;
        }