C# 6.0 String Interpolation

0
Comments
C# 6.0 String Interpolation

One of the top ten requests on uservoice is String Interpolation. Today we are going to see how to use this feature and how it is implemented in C# 6.0. We all use similar expressions: var str = string.Format("Date: {0}", DateTime.Now); This is string interpolation in C# before 6.0. Now, in C# 6.0, we have new string interpolation technique: var str = $"Date: {DateTime.Now}"; There was nothing new added in to runtime, this is just a syntaxis sugar for "old shcool" interpolati...

Read further...

[Fix] Error during installing Windows 7 from USB (Setup was unable to create a system partition or locate an existing partition.)

192
Comments

When you try to install Windows 7 from USB flash drive you may get following error message: "Setup was unable to create a system partition or locate an existing partition." This happens when you have more than one partition on your drive. In google you could find many solutions which require manipulations with your disk (formating, changing partition structure, etc.), but I have found one tricky solution: When you see the error - remove the flash drive from the computer Press exit (red cross in...

Read further...