C#

Category

Using Refit as REST Client - Tutorial

Refit is a type-safe REST Client for .NET Core, Xamarin and .Net - developed by Paul Betts. It is inspired by Square's Retrofit library. Refit makes it relatively easy to make calls to REST API, without writing much of wrapping code. In this article, we are going to explain how to use Refit, with focus on its common features.

How to Send Email in ASP.Net Core 2.0

With the release of .Net Core 2.0, SmtpClient is now available. It is identical to what was there in full .Net framework. Ideally, the code to send email using SmtpClient you might have written in .Net framework should work in .Net Core 2.0 pretty much by copy-pasting.

C# 7.1 New Features

With Visual Studio 2017.3, came the first "point" release or minor update to C#, 7.1. This release adds three new features on top of C#7.0: async main method, default literal expressions and inferred tuple element names. In this post, I will cover how to enable C# 7.1 and the new features which came with it.