Exemplo n.º 1
0
        private MethodException CreateMethodException(int argumentCount)
        {
            var ex = new MethodException(string.Format("Cannot find an overload for \"{0}\" and the argument count: \"{1}\".", Name, argumentCount));

            ex.ErrorRecord = new ErrorRecord(new ParentContainsErrorRecordException(ex),
                                             ExtendedTypeSystemException.MethodCountCouldNotFindBest,
                                             ErrorCategory.NotSpecified,
                                             null);

            return(ex);
        }
Exemplo n.º 2
0
        private MethodException CreateMethodException(int argumentCount)
        {
            var ex = new MethodException(string.Format("Cannot find an overload for \"{0}\" and the argument count: \"{1}\".", Name, argumentCount));

            ex.ErrorRecord = new ErrorRecord(new ParentContainsErrorRecordException(ex),
                ExtendedTypeSystemException.MethodCountCouldNotFindBest,
                ErrorCategory.NotSpecified,
                null);

            return ex;
        }