Skip to content

introduction-csharp/enums

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Enumerated Types (and Extension Methods)

Enumerated types are very useful for discrete choices.

Additionally, extension methods are neat syntactic sugar that look like member methods and can make your code more readable, they can be used with enums, which is especially graceful, given enums cannot have methods defined directly. (They can even be applied to interfaces.)

Reminder: they need to be static methods in a static class, use the this keyword before the first parameter.

ToDo

There are some tasks to do.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages