[ASPNET Core 2] – Middleware

Here is a strange request: Write hello world using ASP.NET. So easy, dotnet new mvc then modify Views/Home/Index.cshtml to return a single line of <p>hello world</p>. Must be it, right? There is another way 😀 1. What is middleware 2. Types of middleware 3. Default middleware 4. Writing a middleware 4.1. Using delegate 4.2. Using …

Continue reading [ASPNET Core 2] – Middleware

Advertisements

[OOP] – Differences between Abstract and Interface?

A very common interview question: The differences between abstract and interface? Interface Think of interface as the USB port on your flashdrive. When buying a new laptop, you don't think "does it compatible with my flahsdrive", but you think "does it have a USB port?". And you know that every single computer on this planet …

Continue reading [OOP] – Differences between Abstract and Interface?