C# Programming
Published in

C# Programming

Quickie Dev #6: Using generics in C#

Because abstraction can save you lots of code repetitions!

C# generics are a way of defining data type-specific behavior without repeating code over and over again.

When you define a generic method or class, you essentially define an empty model, a blueprint than can then be instantiated and that doesn’t know (or knows only partially)…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store