TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Brandon Lewis
NA
527
125.7k
params string[] not taking first argument
Mar 2 2008 5:17 PM
I have a method definition like this:
public void
Log(
Exception
ex,
ExceptionLevel
exceptionLevel,
params string
[] optionalInfo)
{
//Log the exception and such here.
}
And then if I make a method call to this method, like such:
Log(
new
Exception
("This is a test message"),
ExceptionLevel
.Low, "Testing", "Exception Handling", "Operation");
The method will not get passed the very first argument, "Testing", that is passed to it and I end up with an array comprised of "Exception Handling" and "Operation", no first argument.
Has anyone else run into this issue?
Reply
Answers (
3
)
manipulating time in C#
IList<> and the Command Pattern