Now, from C# 7.0, Switch statement will be having more power in matching the cases. Earlier, Switch statement can be used only for primitive and string types. But now we can even use the Switch statements one step ahead for object types.
source https://www.c-sharpcorner.com/Blogs/switch-statement-enhancements-in-c-sharp-70
No comments:
Post a Comment