Implicit Numeric Conversions Table (C# Reference)
Updated: July 20, 2015
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
The following table shows the predefined implicit numeric conversions. Implicit conversions might occur in many situations, including method invoking and assignment statements.
Precision but not magnitude might be lost in the conversions from
There are no implicit conversions to the
There are no implicit conversions between floating-point types and the
A constant expression of type
intcan be converted to
ulong, provided the value of the constant expression is within the range of the destination type.
For more information, see the C# Language Specification. The language specification is the definitive source for C# syntax and usage.