BEST PRACTICES

A Best Practice for Designing Interfaces in .NET C#

Is it enough to define IMyInterface<T>? do I need IMyInterface as well?

Ahmed Tarek
Published in
9 min readNov 2, 2021

--

Best Practice for designing Interfaces in DotNet (.NET) CSharp (C#). When to define a non-generic interface in addition to the generic interface. Best Practice Code Coding Programming Software Development Architecture Engineering
Photo by Kelly Sikkema on Unsplash

While working on your masterpiece software system, you define your own interfaces to act as contracts between your different system modules and to expose some contracts to the outside world. This is not…

--

--

Software Engineer 👨‍💻 | .NET dotnet C# csharp c-sharp | Website: https://www.developmentsimplyput.com | LinkedIn: @atarekhasan