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
Nithika
NA
63
19k
Need help in given code
Jun 18 2014 1:29 PM
Hello Friends,
I am getting error 'cannot convert null to Sample<int>' in below code. Please tell me, why I am getting this error.
struct Sample<T> where T : struct
{
private T inputValue;
public T Value
{
get
{
return inputValue;
}
}
public static implicit operator Sample<T>(T value)
{
return new Sample<T>(value);
}
public Sample(T value)
{
inputValue = value;
}
}
static void Main(string[] args)
{
Sample<int> t = null;
}
Reply
Answers (
3
)
india state city pin code database sql file
Using HttpHandler for Images - can't print images frm chrome