Strona głównaDaj się poznać 2017

While I can’t say casting is a way to go in C#, it’s a rather common operation. It’s good to know there is more than one way of doing that and the best way depends on current circumstances. Explicit Cast I’m assuming you know what casting is but just to be clear, I mean changing object type like casting an int to long or some kind of JSON to string. It’s common, it happens all the time and sometimes we just need to do that. Let’s start with the most basic case of explicit casting.

Tagi: C# 7.0, casting
Źródło: hryniewski.net
Dziel się z innymi:
Is, as, cast – what, when and why – Casting in C# 101 – Hryniewski.NET
Wczytywanie artykułów...