Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
I want to know implicit and explicit Conversion Any Body help me
Posted 19-Sep-12 20:12pm
Edited 19-Sep-12 20:15pm
Kuthuparakkal at 20-Sep-12 2:14am
MSDN is the right resource
@AmitGajjar at 20-Sep-12 2:16am
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
Please Sign up or sign in to vote.

Solution 1

Search broken for you?
You really need to make more effort yourself.
Rate this: bad
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;[^][^]
Codeproject is always the best source, refer here,
Type conversions with implicit and explicit operators[^]

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