Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

C# Discards: Make It Crystal Clear (C# 7.0)

$
0
0

In this post, I'll show you how you can make your code more explicit and simpler by using the Unity C# Discards feature (C# 7.0)

Quick Navigation

What Are Unity C# Discards?

How to Use Unity C# Discards

Calling C# Methods, Ignoring Out Parameters

Discarding Unity C# Tuple elements

Standalone C# Discards

Do Unity C# Discards Make a Performance Difference?

So, What's Next?

What Are Unity C# Discards?

Discards are a C# 7.0 language feature that helps you making your programming intentions more explicit, clearer and simpler.

With discards, you'll help others understand the intentions …


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>