Microsoft recently released .NET Core 3 Preview 2 and includes more features for both .Net Core 3.0 and C# 8. .NET Core 3 will be supported in Visual Studio 2019, Visual Studio for Mac and Visual Studio Code. Visual Studio 2019 Preview 2 was released last week and has support for C# 8.
Now lets see some of the latest feature in C# 8.0:
With latest C# 8.0, you can now attache the using declaration to the scope of the current block of code and later you can dispose the object at the end. Below is the example.
One of the features which I really liked in C# 8 is the Switch Expression. Let's take the example and you will be able to understand properly.
In the above example you can see that first you don't need to declare the variable or explicit type each of the cases. Switch expressions enables terser syntax, returns a value since it is an expression, and fully integrated with pattern matching.
Code Source: Microsoft
So last week I had installed the Ubuntu and for that I had created a bootable USB. After I successfully installed the OS I was trying to format the USB and was getting the error "Error Formatting Volume".
So in this post I am going to show how you can format the USB in case you faced the same issue in any Linux flavor.
So we will be using the "Disks" utility to fix the problem. If you are using Gnome or Unity, press "Super + A" and search for Disks.
In the Disks application, select your USB disk. Be very sure that you have selected the USB disk you wish to format. From the top right menu, select Format Disk option or press "Ctrl + F".
After selecting the Format disk options, please select the below options and click "Format" and as usual you will get warning about losing the data and just click Format.
Once formatted, you’ll see your disk with entire free space.
After that create the partition of the entire free space and format it to whichever file system you want and once done it will be immediately mounted.
I hope my post was helpful to fix the issue. Please share if you liked my article.