Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hello
I want to know implicit and explicit Conversion Any Body help me
 
Thanks
Dreen
Posted 19-Sep-12 20:12pm
Edited 19-Sep-12 20:15pm
v2
Comments
Kuthuparakkal at 20-Sep-12 2:14am
   
MSDN is the right resource
@AmitGajjar at 20-Sep-12 2:16am
   
correct
Andrei Straut at 20-Sep-12 2:24am
   
I think that NoEffort tag is one of the most useful around here, speaks volumes about each question! Love it ever since I found it :thumbsup:
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Search broken for you?
 
Implicit[^]
 
Explicit[^]
 
You really need to make more effort yourself.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Implicit conversion operators can be called implicitly, without being specified by explicit casts in the source code.
 
Unlike implicit conversion, explicit conversion operators must be invoked via a cast.
//Implicit conversion
int total = 100;
string str = "Total number is : ";
Console.WriteLine(str + total);
 
//Explicit Converion
Object obj = new object();
int i = (int)obj + 5;
 
http://msdn.microsoft.com/en-us/library/z5z9kes2(v=vs.71).aspx[^]
http://msdn.microsoft.com/en-us/library/xhbhezf4(v=vs.71).aspx[^]
 
Codeproject is always the best source, refer here,
Type conversions with implicit and explicit operators[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 422
1 sanket saxena 355
2 Abhinav S 258
3 OriginalGriff 250
4 CPallini 205
0 Sergey Alexandrovich Kryukov 8,704
1 OriginalGriff 5,000
2 Peter Leow 3,839
3 Maciej Los 3,535
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 20 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid