internal void SetFilter(LocationInfo locationInfo, FilterAttribute filter)
        {
            if (frozen)
            {
                throw new InvalidOperationException();
            }

            filteredMembers.Add(locationInfo, filter);
        }
        internal void SetFilter(ParameterInfo parameter, FilterAttribute filter)
        {
            if (this.filters[parameter.Position] != null)
            {
                // If you want to support more than 1 filter, you will need a more complex data structure and to cope with priorities.
                Message.Write(parameter, SeverityType.Error, "MY01", "There cannot be more than 1 filter on parameter {0}.", parameter);
                return;
            }

            this.filters[parameter.Position] = filter;
        }