I have written a virtual method .
I want to call that method with a valuetype...
For ex:
int a=23;
String str=a.ToString(); //str=23;
Because ToString is a virtual method allows us to call with valutype.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sreekanth ReddyRank #726 · 3.2K reputationPosted Oct 31, 2018, 9:36 PM EDT
Sreekanth ReddyRank #726 · 3.2K reputationPosted Oct 31, 2018, 9:07 PM EDT
Sreekanth ReddyRank #726 · 3.2K reputationPosted Oct 31, 2018, 9:13 PM EDT
Sreekanth ReddyRank #726 · 3.2K reputationPosted Oct 31, 2018, 9:21 PM EDT
Hemalatha Sunnapu195 reputationPosted Oct 31, 2018, 9:29 PM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Oct 31, 2018, 9:34 PM EDT
Hemalatha Sunnapu195 reputationPosted Oct 31, 2018, 9:35 PM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Oct 31, 2018, 9:53 PM EDT
Jaish MathewsRank #225 · 11K reputationPosted Oct 31, 2018, 9:55 PM EDT
Hemalatha Sunnapu195 reputationPosted Oct 31, 2018, 10:08 PM EDT
{
if((object)i==obj)
{
res=true;
}
else
{res = false;}
return res;
}
Laxmidhar SahooRank #383 · 6.6K reputationPosted Oct 31, 2018, 10:23 PM EDT
Jaish MathewsRank #225 · 11K reputationPosted Oct 31, 2018, 10:26 PM EDT