DEV Community

jalpesh Vadgama
jalpesh Vadgama

Posted on

3

C# 9.0 Feature - Omit New Expression

With .NET 5.0, Microsoft has released new version of C# and It got some cool new features. So I'm creating a video series about those new features and this is video is second of them. In this video, We are going to learn how we can omit the new expression and we have to write less code when we know the type of object we are creating.

In this video, I have created an simple console application and explained how we can omit the New Expression in C# 9.0. If we know the type and if we don't know the type i.e. we use var keyword then its giving errors.

For more details please do watch my video.

Here is a complete list of video series:

Part 1: C# 9.0 Feature - Top New Level Statement
http://bit.ly/CS9TopLevelStatement​

Part 2: C# 9.0 Feature - Omit New Expression
http://bit.ly/CS9OmitNewExpression

If you like this video and wanted to see a similar kind of video then, please subscribe to my you tube channel at - https://bit.ly/codewithjv.

Also, Please comment about what content you want to see in my YouTube channel.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay