Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
can not the "string.Empty" as the default parameter method?
behzad pakniyat
Jun 22 2015 11:20 AM
509
Reply
Hi
To all users
When the value of "
string.Empty
" parameter method I use, I encountered the following error:
Error 1 Default parameter value for 'Name' must be a compile-time constant.
public void SetName(string Name = string.Empty)
{
this.mName = Name;
}
thanks.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Login problem
Custom Tool Error WCF