C#
C# 7.1 - New features
Introduction In some of the previous posts we talked about new features in C# 7 and we talked about the usage of nameof expression in C#. In this post, we will talk about new features that came with C# 7.1.
C# 7 - reference returns & local references
Introduction In on of the last posts, we talked about some of the big features that came with C# 7. In this post, we will continue on that and we will talk about returning references from functions and storing references inside of local variables.
C# 7 - new features
Introduction C# is a powerful object-oriented language that is very easy to pick-up. The syntax is so simple but there are so many powerful and great features in C#. Some of the amazing features are lambdas, LINQ, generics, interfaces, async/await. They are all powerful concepts and it is a delight to use them with C#. With .NET Core being open source and cross-platform and ability to build for so many platforms and devices it is good to know ins and outs of the language.
nameof expression is amazing! Say NO to magic strings!
The nameof expression This is one of many goodies that came with C# 6.0. That was back in July 2015. I have been using nameoffor quite a while now, but at the start, I wasn’t really aware of its full potential! Oh, what a sinner!
ASP.NET Core MVC - Custom Tag Helpers
Introduction In on of the previous posts we talked about Tag Helpers, we also talked about caching Tag Helpers and form Tag Helpers. By creating our custom Tag Helpers, we have an ability to extend existing HTML elements or create our custom HTML elements.
ASP.NET Core Razor Pages - Handler Methods
Introduction In the last post, we talked about Razor Pages. Today we will talk more about handlers. We saw that we could have our code and model either in a .cshtml file or inside of code behindfile that matches the .cshtml - .cshtml.cs file.
ASP.NET Core Razor Pages – Introduction
Introduction With ASP.NET Core 2 around the corner, the hottest new thing that we are getting is Razor Pages. In one of the previous posts, we briefly mentioned ASP.NET Core Razor Pages. Razor Pages is a new feature of ASP.NET Core that makes coding page-focused scenarios easier and more productive.
ASP.NET Core MVC - Form Tag Helpers
Introduction We already talked about Tag Helpers, we mentioned some of the most used Tag Helpers and we also talked about caching Tag Helpers. In this post, we will talk about form Tag Helpers. HTML or Web Form is used to collect an input from the user using various HTML elements like inputs, checkboxes, radio buttons, dropdown lists, etc. When using the HTML element we are usually talking about POST request, even tho we could use GET. However, GET is recommended for short, non-sensitive, amounts of data usually used to fetch some data based on provided parameters.
ASP.NET Core MVC – Caching Tag Helpers
Introduction Caching can significantly improve our application load time and responsiveness. What can we cache with cache Tag Helpers? Well, we cache HTML content. We usually cache content that does not change frequently. In one of the previous posts, we talked about Tag Helpers. We saw what Tag Helpers do, how we can use them and we saw how do we use some of the most used Tag Helpers.
ASP.NET Core MVC - All about Tag Helpers
Introduction Tag Helpers provide us with means to change and enhance existing HTML elements in our views. Therefore, we add them to our views, and afterwards, they are processed by the Razor Templating engine which in return creates an HTML and serves it to the browser. Few Tag Helpers actually act as elements or actual tags (environment, cache, etc.).