Modern C# Target-Typed New
private readonly Vector2 _offsetTilePosition = new(1.61f, 1.61f);
A code screenshot shows a C# field declaration using target-typed new syntax to construct a Vector2 with two floating-point values. The joke is that the uploader finds this newer shorthand unexpectedly unfamiliar or cringeworthy, reacting as though modern C# has introduced an odd new way to declare variables.
- @eternalclassic / 19417 2022-09-12
- Type
- image
- Size
- 482×38 · 4.3 KiB
- Mood
- sarcastic, cringe
- Language
- en
- Added