C# Version History: Examining the Language Past and Present
-
-
Nice summary! I'm going to have to brush up on some of those features. Marc
Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
It's worth mentioning C# Operators[^] too. (
??
,?.
, etc)Wonde Tadesse
-
It's worth mentioning C# Operators[^] too. (
??
,?.
, etc)Wonde Tadesse
?.
is the null propagator operator (v6). MarcLatest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
?.
is the null propagator operator (v6). MarcLatest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
It's also called null conditional member access. :-D
Wonde Tadesse
-
-
I thought I knew pretty much all the C# language features but I somehow completely missed
using static
. That's an awesome feature I'm going to put to use next time I have to deal with extension methods :thumbsup:Looks like that might be a reasonable case for it, ditto for importing enums baked into a class. I'm a bit nervous about the general case with arbitrary methods though; seems ripe to letting stupid messes in and trying to program C# like a procedural language instead of an OO one.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt