Code Mahek
  • Blog
  • About
  • Contact
  • Random Clicks
  • Resume
  • Ava Chat Bot

Fragrance
​of Programming

C# 6.0 New Features - String Interpolation

4/11/2015

Comments

 
Today we are going to explore yet another new feature of C# 6.0 which will be coming in this release. This is my fourth post in the series of C# 6.0 New Features. Don't forget to read my previous post in this Series :

  • C# 6.0 New Features - Null Conditional Operators
  • C# 6.0 New Features - Default Values to Auto Properties
  • C# 6 New Features - nameof Expressions


Today we will be learning about String Interpolation/String Concatenation with respect to C# 6.0.

String Concatenation - It's used to join the different records to the users and to accomplish this we either use "+" symbol or string.Format method to format and to organize it. With the new release of C# 6.0, it's now a old mechanism.
Picture
String Concatenation : Older Way
But now with C# 6.0, Developer can directly put expressions in the string literal to show the values in proper format and you can even align or specify different format to your values. And one of the best is, Developer can write conditions within string literals with additional strings as content. 


Below are the few examples :
Picture
String Concatenation in C# 6.0
Hope you like this feature and since Microsoft is yet to release the stable version of Visual Studio 2015 and C# 6.0, so you can expect quite a lot more feature in String Interpolation. Stay tune to my series of post on C# 6.0 Features. Happy Coding.

Rishi
Comments

Surface 3 Launched for $499

3/31/2015

Comments

 
PictureCourtesy : Microsoft
Microsoft is back with the brand new Surface 3 tablet but compared to original Surface RT and Surface 2, configuration is between different. Surface RT and Surface 2 didn't let you run the traditional application but with Surface 3 Microsoft is ditching ARM processor and Windows 8.1 RT and brings full version of Windows 8.1 up-gradable to Windows 10 with an Intel Atom chip.
With the Launch of Surface 3 its very much confirmed that Windows 8.1 RT is distant idea and Microsoft wants to forget its mistake.


Surface RT and Surface 2 used a 10.6-inch display with 16:9 aspect ratio but with Surface 3 Microsoft improved it to 10.8-inch display with 3:2 aspect ratio. Another major design compared to Surface 3 Pro is the kickstand. In Surface 3 Pro Microsoft introduced Multi-Position kickstand but with Surface 3 user can now adjust kickstand to 3-position.

To help with lap use, Microsoft is upgrading its smaller Surface Type Covers to accommodate the Surface 3. Just like the Surface Pro 3, they snap into place underneath the screen with magnets to help make the keyboard a lot more sturdy in your lap. While you can use the new Surface 3 Type Covers on the Surface Pro 3, and vice versa.


Best selling point of Surface Pro 3 is the stylus which Microsoft is bringing to Surface 3 and Pen is same as what you use in Surface Pro 3. Also there are various color option for Stylus matching with the TypeCover.


Another great feature feature with Surface 3 is that user can now charge Surface 3 with USB. And with Surface 3 user will even get one year free subscription for Office 365 personal. 


With good reviews and sales of Surface Pro 3, Microsoft is hoping to get a good response for Surface 3. Main target with the release of Surface 3 is Students and users who like Surface Pro 3 but don't need full power of it.

Comments

    RSS Feed

    Categories

    All
    Azure
    C#
    Cloud
    CodeProject
    CSharp
    DotNet Core
    Jetbrains
    .NET
    Rider
    Source Generators
    SQL
    Tech News
    Ubuntu
    Visual Studio 2015
    Visual Studio 2019
    Windows
    Windows 10

    Archives

    May 2020
    February 2019
    January 2019
    December 2018
    May 2018
    December 2017
    November 2017
    October 2017
    September 2017
    July 2017
    May 2017
    April 2017
    May 2015
    April 2015
    March 2015

    View my profile on LinkedIn

Location

Contact Us

    Subscribe Today!

Submit
  • Blog
  • About
  • Contact
  • Random Clicks
  • Resume
  • Ava Chat Bot