We’ve covered all the features in the C++ language! Still, C# has some features that are missing from C++. Today we’ll look at those and explore some alternatives to fill these gaps.
Posts Tagged decimals
C# allows for overloading not just function names, but also type names. This is used throughout the .NET and Unity APIs for interfaces like
IEnumerable<T>, classes like
UnityEvent<T0, T1>, and delegates like
Action<T1, T2> and
Action<T1, T2, T3>. C++, however, does not support type overloading. Today’s article explores how to deal with this and, once we’ve solved the issue, what extra C# features we’ll have access to in C++.
The language’s built-in types should be trivial, but they’re not. There are a lot of little details overlooked by many programmers. Today’s article continues the series by looking at subtleties found in seemingly-obvious language features like strings and integers. Read on to learn some tricks!