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
0 OriginalGriff 310
1 Sergey Alexandrovich Kryukov 201
2 PhilLenoir 164
3 Magic Wonder 162
4 Richard MacCutchan 160
0 Sergey Alexandrovich Kryukov 6,140
1 OriginalGriff 5,195
2 CPallini 2,473
3 Richard MacCutchan 1,607
4 Abhinav S 1,505


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100