#29 String Interpolation - C# Tutorials for Beginners | CoffeeNCode

Опубликовано: 27 Июль 2022
на канале: CoffeeNCode
243
9

How to use the break and continue keywords in Visual Studio using C#!
💖 Become a Patron: Show support & get perks!
  / coffeencode  

💻 Community Discord server
  / discord  
When you join the server, you can get your own personal help channel for FREE where you can post anything you're stuck with and I will help you 😊

☕ Buy me a Coffee
https://ko-fi.com/coffeencode
https://www.buymeacoffee.com/coffeencode

Using string interpolation allows you to write clean code and make your string outputs look concise and to the point - without having to break them up as you are required to when normal string concatenation is used.

There is two methods for string interpolation, one is used by inserting the following '{0}' then adding a comma list of variables at the end. When the list of variables becomes too long it could be problematic and will hurt the readability of your code. Only use this method when you have a few variables.

The 2nd method is more flexible as you can read the variables used as you type them out in the strings. This method I prefer the most as it's the most readable and scales well with lots of variables.

📣 Socials
  / codewithaba  
  / codewithaba  

Timestamps:
0:00 Intro
0:10 Example
1:36 1st method
3:07 2nd method
4:11 Real world example
8:33 Recap & Understanding
9:34 Outro & Patreon shoutout


Смотрите видео #29 String Interpolation - C# Tutorials for Beginners | CoffeeNCode онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CoffeeNCode 27 Июль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 24 раз и оно понравилось людям.