Пример #1
0
        public bool Conflict(ExecutableMethodInfo other)
        {
            if (other == null)
            {
                return(false);
            }

            if (Equals(other))
            {
                return(false);
            }

            if (IsAcceptOptions && !other.IsAcceptOptions || !IsAcceptOptions && other.IsAcceptOptions)
            {
                return(false);
            }

            return(Parameters.Count() == other.Parameters.Count());
        }
Пример #2
0
 public ExecutableMethodParameterInfo(ExecutableMethodInfo method, ParameterInfo parameter)
 {
     Method     = method;
     _parameter = parameter;
 }