We developers spend lot of our time reading code. We read code so that we know how to change it to implement a new feature, fix a bug, etc. It is much better to work in a code base where code is easy to read and understand.
One thing that can make code readable is good naming. Giving variables, classes, and methods good names makes code easier to read.
یک مشکل در مرورگر را کشف کردم!
معرفی C# Source Generators
مخلص کلام اینکه : اگه با Fody یا PostSharp و همچنین Code Analyzerها آشنایی دارین. این قابلیت یه چیزی تو مایههای ترکیب ایناس و بهتون اجازه میده موقع Compile شدن کد پروژه رو Analyze کنین و یه کد جدیدی بهش اضافه کنین. (مثلا پیاده سازی اینترفیس INotifyPropertyChanged به صورت خودکار به هنگام کامپایل)
We’re pleased to introduce the first preview of Source Generators, a new C# compiler feature that lets C# developers inspect user code and generate new C# source files that can be added to a compilation. This is done via a new kind of component that we’re calling a Source Generator.
To get started with Source Generators, you’ll need to install the latest .NET 5 preview and the latest Visual Studio preview.
نمونه ای از پیاده سازی INotifyPropertyChanged with C# 9.0 Source Generators
9.Visual Studio 2017 15.8 منتشر شد
These are the customer-reported issues addressed in 15.8.9:
- Added support for Xcode 10.1 in Visual Studio Tools for Xamarin.
- Updated the Xamarin.Forms template to Xamarin.Forms 3.3.0.
- Update 15.8.6 breaks Installer Projects.
- Internal Compiler error in VS15.8 msc1.cpp line 1518.
- Microsoft Visual Studio 2017 Installer Projects 0.8.8 and VS 15.8.6.
- SFINAE fails to detect matching overloaded function in preview VS preview 3 15.9.0.
- XAML Designer crash on Visual Studio close.
مدل پیکره بندی جدید در ASP.NET CORE
ASPNET Core has a lot of changes compared with the others versions of ASP.NET. One change I want to highlight is the new way to configure settings. With previous versions, this configuration was made by using the common file web.config, but this file simply doesn’t exist anymore in ASP.NET Core. Instead, a new easy way to declare and access to the settings is provided. Let’s take a look.
الگوهای طراحی در قرن 21 ام
4.Visual Studio 2017 15.6 منتشر شد
5.Visual Studio 2017 15.6 منتشر شد
These are the customer-reported issues addressed in this release:
- VS 15.6 does not respect the 'apply server settings to all users (store in project file)'.
- Project could not be opened because Visual C# 2017 compiler was not created.
- NuGet Package Manager only sees latest package versions after manually clearing cache.
- Lost IIS Server Settings.
- Visual Studio hangs during Nuget package update.
- Installer throws unexpected error and saved changes to Solution2.sln are not saved.
-
C:\Windows\temp
fills up with .itrace files after upgrade to 15.5.6. -
vstest.console.exe
fails test run with socket exception. - This release includes support for Xcode 9.3.
In this post, we are going to write about what we consider to be the best practices while developing the .NET Core Web API project. How we can make it better and how to make it more maintainable.
We are going to go through the following sections: