Menu

#_percent

1 post

Feed
1 of 1 post
The Backing Field a Typo Could Reach
📰
0Read More

The Backing Field a Typo Could Reach

DEV Community: dotnet·Sukhpinder Singh·18 days ago
#3M0vaqME
#devtodotnet#devto#dev#field#_percent

A discount I'd clamped to 100 still came back as 110 because one line skipped the setter. Here's how C# 14's field keyword makes that backing-field shortcut impossible to write.

15s