Last week at Microsoft Build, there have been a lot of exciting annoucements! .NET 5, Blazor WebAssembly, .NET MAUI, WinUI… But the thing I’m most eager to get my hands on is C# 9, which introduces many interesting new features, so let’s take a quick tour! There’s a long list, so I won’t cover all of them here, but I will highlight the ones I find the most interesting.
- Exciting New Features For Laptops
- Exciting New Features & New Plans Floor Plans
- Exciting New Features For Small
Note: Unfortunately the new C# features aren’t supported yet in the latest SDK preview, so we can’t test them in actual projects. Some features can be tried in SharpLab, but things are moving fast, so the bits available in SharpLab don’t always reflect what has been announced at Build.
Update 2020/06/17: A few of the features mentioned in this post are now available in the .NET 5 preview 5 SDK.
Intercom is a new HomePod feature that allows family members to communicate with each other inside a home. Members can send messages through the HomePod speakers to connected iPhones, iPads, Apple.
In C# 9, it will be possible to omit the type in object creation expressions, if the type can be inferred from the context, making code terser and less repetitive:
- Proper Labs – New website/features announcement. ProperLabs’s inspiring new website announcement email template is a good example of how you can introduce a new website, brand, and features launch to your email subscribers.
- Microsoft Deals Blow With A Bunch Of Exciting New Edge Features January 24, 2021 January 24, 2021 Swaira Shabir 0 Comments January 24, 2021 Swaira Shabir 0 Comments.
This feature introduces a simple syntax to automate null checks on method parameters. For instance, this code :
Can be simplified to this:
! after the parameter name automatically inserts a null check for that parameter.
Pattern matching improvements
Exciting New Features For Laptops
C# 9 comes with a few improvements to pattern matching. The most useful, in my opinion, is the
not pattern, which lets you write code like this:
>=, etc.) and logical operators (
or) can also be used in pattern matching:
This is the big one, in my opinion. Creating simple data types in C# have always been more painful than it should be; you have to create a class, declare properties, add a constructor if you want your type to be immutable, override
GetHashCode, maybe add a deconstructor, etc. C# 7 tuples made this a little easier, but still not ideal since a tuple is anonymous. The new Record feature in C# 9 makes things much easier!
For instance, a simple class representing a point might look like this, if you implement equality, deconstructor, etc.
In C# 9, using the Records feature, the above class can be reduced to this:
Yup, just one line, and not even a long one! How great is that? Note that it also works with structs, if you need a value type.
Note that records are immutable: you can’t change the values of their properties. So if you want to modify an instance of a record type, you need to create a new one (this should be familiar, since the same is true of dates and strings, for instance). The current approach would be to do something like this:
Basically, copy all properties from the original instance, except the ones you want to change. In this case, it’s OK because there are only 2 properties, but it can quickly become annoying when there are many properties.
Mailing listsofashallow foundation analysis software pdf. C# 9 introduces
with expressions, which let you do this instead:
with expression makes a clone of the original object, with the modified properties specified between curly brackets.
There are several sub-features related to records (e.g. init-only properties), that I won’t cover here. Check out Mads Torgersen’s article for a more in-depth description.
There’s a small thing that has been annoying C# developers for years: when using the conditional operator (also known as “ternary”), there must be a type conversion from one side to the other. For instance, this code doesn’t compile:
Because there’s no conversion between
FileStream. To fix it, one side has to be explicitly cast to
In C# 9, the code above will be allowed, if both sides are convertible to the target type (in this case,
Currently, when you override a method from a base class, the overriding method must return the same type as the base class method. In some situations, it would be more practical to return a more specific type. C# 9 makes this possible by allowing overriding methods to return a type that derives from the base method’s return type:
This feature aims to reduce boilerplate code for simple programs. Currently, even the simplest program needs a class with a
This just adds noise, and make things confusing for beginners. C# 9 will make it possible to omit the
Program class and
Main method, so that the code above can be simplified to this:
Exciting New Features & New Plans Floor Plans
Most of the features introduced by C# 9 are relatively small ones, designed to make code simpler, less cluttered and more readable; they’re very convenient, but probably won’t change how we write code in a very fundamental way. Records are another story, though; they make it much easier and less painful to write immutable types, which I hope will encourage developers to take advantage of immutability whenever possible.
Note that the release of C# 9 is still a few months away, and things are still moving, so some of the features I mentioned in this post could be modified, postponed to a later version, or even abandoned completely.
The much enhanced and feature rich new Windows 8.1 update is just on the corner making wave of apprehensions and exciting speculations.The much enhanced and feature rich new Windows 8.1 update is just on the corner making wave of apprehensions and exciting speculations.
There have been lot of speculations for last few months regarding the release of new Windows 8.1 update and though the official release is still in the process there is no end to the apprehensive discussion on the new features and tech specs. The changes and additions are already clear enough to the tech wizards and reviewers and at least some aspects can really be termed exciting considering the gross ease they would offer in our interaction with this new Windows avatar. Here are our picks on 10 exciting new features in Windows 8.1.
- Reintroducing Start Button
- Bing Smart Search
- Much Improved Built-in apps and Windows store
- Browser Friendly Reading View
- Option of going back to old desktop
- Accessing camera from lock screen
- Multi-window mode for multitasking
- SkyDrive File Explorer
- X-box Music Playlist and X-box Radio
- All-in-one place new settings menu
The new and refurbished 'start' button is a big hit in the Windows 8.1 update. For long the absence of the 'start' button has been one of the top reasons for the users of Windows 8 and now with the introduction of the revised and much better start page it ultimately proved to be far better than all the earlier versions. The new style start page is more than just smart look; it is ready to find anything you wish, from applications to folders to settings, all in no time.
One of the most exciting new features in Windows 8.1 is the comprehensive Bing smart search. The one window search with Bing lists all results across the desktop folder, web, news, applications and app store. Undoubtedly to get a comprehensive view of all search results across various categories and areas is a great feature for this new OS update.
The new Windows 8.1 can make your overall computing and browsing experience far better by an array of built-in applications. A great food and drink application and a fitness application are worth mentioning besides host of other applications for other areas of practical purposes. This time Windows app store is also much enriched and enhanced with array of diverse applications.
Your much suppressed antipathy to ads has been addressed in this new Windows 8 update and not only that, there have been an array of enhancements for a much better reading view of the web and search pages. Presenting the required article in a horizontally scrolling format minus all those annoying clutter is certainly a great enhancement, particularly for the serious web users the focus of whom is always uncannily fixed on content.
The touch interface and typical mobile application like tiles might be a major shift from the traditional Windows look and feel but a majority of users since its launch secretly wished to have an option to return to their old desktop as and when they feel to do so. Yes, this new Windows 8.1 update allows you to switch between typical touch friendly tile interface and old desktop as and when you wish.
When launched displaying photos on the locked screen was a popular use, especially among the tablet users and so this time the enhancement is going to offer more freedom of display when your screen is locked. Even when your screen is locked you can enjoy a slide show comprising your photo folder or SkyDrive or you can take photos or shoot videos even when the screen is locked. More freedom for your display and camera this time!
Multitasking is a focus area across all kinds of tech gadgets and more it is done seamlessly more we consider the tech device smarter. So this Windows 8 update has just followed the trend. The most exciting new thing about Windows 8 is that you can perform several different tasks on the same display and without feeling any clutter. While browsing your mail box tapping on an image or mail it can lead to the opening of a web page or photo folder just beside the regular mailbox display. Thus you can experience side by side display of different tasks or search areas.
The new SkyDrive sync and storage is certainly one of the most exciting new features in Windows 8.1 that not only allows you to save all your files, data even when you are offline but it also allows you to remain in sync if you just access your desktop through Outlook.com account. Users who are using touch friendly devices with Windows 8 as their OS often find the hardware storage as too limited (especially in tablet PCs) and now this seamless SkyDrive sync is just going to offer inexhaustible possibility of storage.
With new Windows 8.1 update Microsoft offers some really good applications absolutely free requiring no subscription and consequently no ticking of message concerning the end of your free trial period. X-box is one such application that let you create your own playlist and create your own radio stations based on the type of music stored in your folder. From now on your listening experience got to be a little smarter with X-box and this new OS update, no doubt!
The settings menu is unquestionably one of the most user friendly new features in Windows 8.1. The new settings menu is consolidated to incorporate different application and hardware settings in one place without requiring you to move here and there. From managing screen resolution to language to SkyDrive settings to Bluetooth to power management to browser settings all you can access from the easy to navigate and all-in-one place setting option.
Exciting New Features For Small