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); }
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; }