Esempio n. 1
0
        /// <summary>
        ///     Checks if there is a matching rule for the specified operation.
        /// </summary>
        /// <param name="nrElement">The type of the element to check.</param>
        /// <param name="nrOperation">The operation to check.</param>
        /// <returns><c>True</c> if there is a matching rule.</returns>
        private bool Reflect(FilterElements nrElement, NROperation nrOperation)
        {
            FilterModifiers filterModifiers = GetFilterModifier(nrOperation.AccessModifier);

            filterModifiers |= nrOperation.OperationModifier == OperationModifier.Static ? FilterModifiers.Static : FilterModifiers.Instance;
            return(RuleMatch(nrElement, filterModifiers));
        }
        /// <summary>
        /// Prints the members of the supplied <see cref="NROperation"/>.
        /// </summary>
        /// <param name="nrOperation">The members of this <see cref="NROperation"/> are printed.</param>
        private void PrintMembers(NROperation nrOperation)
        {
            PrintMembers((NRMember)nrOperation);

            OutputLine("IsAbstract: " + nrOperation.IsAbstract);
            OutputLine("IsHider: " + nrOperation.IsHider);
            OutputLine("IsOverride: " + nrOperation.IsOverride);
            OutputLine("IsSealed: " + nrOperation.IsSealed);
            OutputLine("IsStatic: " + nrOperation.IsStatic);
            OutputLine("IsVirtual: " + nrOperation.IsVirtual);
            OutputLine("OperationModifier: " + nrOperation.OperationModifier);
            nrOperation.Parameters.ForEach(nrParameter => nrParameter.Accept(this));
        }