-
Notifications
You must be signed in to change notification settings - Fork 2
TSTS_Constants
Joe Care edited this page Oct 18, 2025
·
1 revision
Vergleich von const und readonly in C#.
-
constzur Compilezeit, inlinend in aufrufenden Assemblys -
readonly-Felder: zur Laufzeit im Konstruktor setzbar -
static readonlyvs.const - Versionierungsfallen bei
const
- API-Design: öffentliche
constvermeiden, stattdessenstatic readonly - Unveränderliche Konfigurationen
- Siehe auch: Properties