Tag: csharp

blog

Type Conversion in C#

The process of converting one type to another is called type conversion. In C#, you can perform the following kinds of conversions: Implicit conversions Explicit conversions User-defined conversions Conversion with a helper class To go more in detail about Implicit and Explicit conversions read my previous article Boxing and Unboxing in C#. Implicit conversions An implicit […]

Ottorino Bruni 
blog

Boxing and Unboxing in C#

C# is, for the most part, a statically typed language, this means that the compiler will check the type of every expression and you sometimes have to convert between types. The concept of boxing and unboxing is the starting point in C# type system in which a value of any type can be treated as an object. […]

Ottorino Bruni