C# has support for type aliases in the form of using ScoreMap = System.Collections.Generic.Dictionary<string, int>;
directives. This allows us to use ScoreMap
instead of the verbose System.Collections.Generic.Dictionary<string, int>
or even Dictionary<string, int>
. C++ also has type aliases, but they go way beyond what C# supports. Today we’ll dig into everything C++ offers us to make our code more concise and readable.
Posts Tagged using
With structs wrapped up, we can move on to other features of C++. Today we’ll take a look at namespaces. We’ll cover the basics that C# provides, but go so much further and cover a lot of advanced functionality. Read on to learn all about them!
Today we’ll look at the C++ code that IL2CPP outputs when we use iterator functions (those that yield
), switch
statements, and using
blocks. What are you really telling the computer to do when you use these C# features? Read on to find out.
(Website Announcement: check out the new tags page to find articles by topic)
Today we continue the series by looking at how resources—primarily memory—are acquired and cleaned up in C#. We’ll go way beyond the new
operator and discuss advanced features like finalizers and using
blocks that can make releasing resources much less prone to errors. Read on to learn!