Click here to Skip to main content
12,996,849 members (135,651 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I want to know implicit and explicit Conversion Any Body help me

Posted 19-Sep-12 20:12pm
Updated 19-Sep-12 20:15pm
Kuthuparakkal 20-Sep-12 2:14am
MSDN is the right resource
@AmitGajjar 20-Sep-12 2:16am
Andrei Straut 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 20 Sep 2012
Copyright © CodeProject, 1999-2017
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