Type Conversions in C#

Photo by Suzanne D. Williams on Unsplash

Implicit Conversions

int integerValue = 42;
long longValue = integerValue;

Explicit Conversions

long longValue = 42;
int intValue = (int) longValue;

Usage Scenerio

Bonus

--

--

--

var software = ConvertFrom(caffeine)

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Top Databases Supporting in-database Machine Learning

Databases Supporting in-database Machine Learning

Amazon Simple Queue Service (SQS)

How to use SHAP with PyCaret

Prometheus: Alertmanager Web UI alerts Silence

WWCode ♥️ RMOTR — Alumni spotlight

Advanced Microcontroller Debugging using the ESP-PROG

Can Devs Launch Something?!

Low-Code will Uncover and Improve Business Delivery Inefficiencies

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adem Catamak

Adem Catamak

var software = ConvertFrom(caffeine)

More from Medium

Creating a Huel monitor app in C#

On the covariance, contravariance and invariance

Pangram in C#

Setting Up Git