The Basics of Strings! [Pt 5] | C# for Beginners

Поделиться
HTML-код
  • Опубликовано: 9 ноя 2023
  • View full playlist: aka.ms/dotnet/beginnervideos/...
    Set up C# in VS Code: aka.ms/dotnet/get-started/vscode
    🏆Earn the C# Certification: aka.ms/csharp-certification
    What is a string? How are characters "strung" together to make a string in C# and .NET? In this video, Scott and David show you how to declare a string, concatenate strings, use string interpolation, and trim whitespace.
    Links:
    .NET Beginner Videos: aka.ms/dotnetvideos
    MS Learn: aka.ms/dotnet/beginnervideos/...
    Blog: aka.ms/dotnet/blog
    Twitter: aka.ms/dotnet/twitter
    TikTok: aka.ms/dotnet/tiktok
    Mastodon: aka.ms/dotnet/mastodon
    LinkedIn: aka.ms/dotnet/linkedin
    Facebook: aka.ms/dotnet/facebook
    Docs: learn.microsoft.com/dotnet
    Forums: aka.ms/dotnet/forums
    🙋‍♀️Q&A: aka.ms/dotnet-qa
    👨‍🎓Microsoft Learn: aka.ms/learndotnet
    #dotnet #csharp
  • НаукаНаука

Комментарии • 14

  • @Rajinthan19
    @Rajinthan19 Месяц назад

    Wow, what a way to present this material. This course is way too underrated.

  • @Anbu_Sampath
    @Anbu_Sampath 7 месяцев назад +6

    Best teachers at work.

  • @lyg2526
    @lyg2526 7 месяцев назад +2

    I Love these two guys.

  • @blitzzmann
    @blitzzmann 7 месяцев назад +2

    love the frozen joke Scott!

  • @nicolastriana830
    @nicolastriana830 4 месяца назад +2

    This content is gold thanks

  • @jupitersbot
    @jupitersbot 3 месяца назад

    thank you guys!

  • @nyiminhtun9418
    @nyiminhtun9418 Месяц назад +4

    I really like how they act like they dont know what they are talking about lol.

  • @IvyQBee
    @IvyQBee 25 дней назад

    Completed.

  • @tinogara5892
    @tinogara5892 29 дней назад +2

    amazing tutorial. a hidden gem! I was wondering what would happen if we have " Maria Gonzales " as string. The spaces between the first and last name are NOT trimmed. For that Regex.Replace(firstFriend.Trim(), " +", " ") would work.

  • @cbtcahaoo
    @cbtcahaoo 3 месяца назад +2

    I hope you will add actively translated subtitles to the video because automatically translated subtitles are not seamless and it is difficult for people who do not know English to understand the video clearly.

  • @VictoryOgheneruemu
    @VictoryOgheneruemu 7 месяцев назад +3

    Hey David. Hello Scott

  • @wtcodingproductions
    @wtcodingproductions 2 месяца назад

    string firstFriend = " David ";
    string secondFriend = " Scott ";
    firstFriend = firstFriend.TrimStart().TrimEnd(); // Also, can make use of 'chaining' of Methods
    Console.WriteLine($"My friends are {firstFriend} and {secondFriend.Trim()}"); // $ string interpolation