C# Trim Method - Removing unwanted characters

Поділитися
Вставка
  • Опубліковано 8 лип 2024
  • 🔥 Your STRINGS do not need all of those extra characters, TRIM them! Learn how to Trim your strings using the TRIM method in C#!
    🚀 SKYROCKET your C# skills and become a sought-after C# developer with our C# Progress Academy: www.udemy.com/course/master-f...
    👊 Want more C#? Check out our FULL C# Masterclass! www.udemy.com/course/complete...
    📚 Interested in more C#? Check out our Tiny C# Projects book! A full book dedicated to teaching C# in a practical way!
    www.manning.com/books/tiny-c-...
    We'll make sure to turn you into a true developer in no time!
    Timestamps:
    00:00 Introduction
    00:17 Let´s fix this string
    02:01 Check out this C# Program
    02:28 What else can the Trim method do?
    03:56 Thanks for watching!
    C# Trim Method - Removing unwanted characters
    So, what is C#?
    C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers. This tour provides an overview of the major components of the language in C# 8 and earlier. If you want to explore the language through interactive examples, try the introduction to C# tutorials.
    C# is an object-oriented, component-oriented programming language. C# provides language constructs to directly support these concepts, making C# a natural language in which to create and use software components. Since its origin, C# has added features to support new workloads and emerging software design practices. At its core, C# is an object-oriented language. You define types and their behavior.
    And what is TRIM?
    Trim is a C# method from the String class that returns a new string in which all leading and trailing occurrences of a set of specified characters from the current string are removed.
    The string that remains after all occurrences of the characters in the trimChars parameter are removed from the start and end of the current string. If trimChars is null or an empty array, white-space characters are removed instead. If no characters can be trimmed from the current instance, the method returns the current instance unchanged.
    To learn more, make sure to watch the video, and we promise you that you'll become a better developer by the end of the video! Have fun!
    And thank you LAKEY INSPIRED for these amazing songs that we use in all our videos! @LAKEYINSPIRED
    #csharp #coding #tutorial #learn #microsoft #net #trim #string
    TAGS
    c#,.net,c-sharp,csharp,programming,visual studio,c sharp,learn c#,c# programming,c# tutorial,c# for beginners,learn c# programming,c# course,tutorial,coding,.net core,string,code,trim,remove,trim method,c# trim method,trim(),how to code,free course,free online courses,c# tutorial for beginners,c sharp tutorial,exercises c sharp,begin c sharp,c# trim string,sql interview questions,net core tutorial,spring interview questions,c# trimming string
    TutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
    This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.
    Stay tuned and subscribe to tutorialsEU: goo.gl/rBFh3x
    C#: / @tutorialseuc
    Facebook: / tutorialseu-1093802040...
    LinkedIn: / tutorialseu
    Discord: / discord

КОМЕНТАРІ • 4

  • @tutorialsEUC
    @tutorialsEUC  Рік тому +1

    🔥 Your STRINGS do not need all of those extra characters, TRIM them! Learn how to Trim your strings using the TRIM method in C#!
    🚀 SKYROCKET your C# skills and become a sought-after C# web developer with our C# Progress Academy: academy-tutorials.eu/csharp-progress-academy-organic?
    📚 Interested in more C#? Check out our Tiny C# Projects book! A full book dedicated to teaching C# in a practical way!
    www.manning.com/books/tiny-c-sharp-projects?a_aid=tutorialseu&a_bid=1563805e
    We'll make sure to turn you into a true developer in no time!

  • @lexpsd
    @lexpsd 10 місяців тому +1

    Another important thing to mention, that there are 3 different methods: Trim(), TrimEnd() and TrimStart(), their difference is quit obvious, also without overloading they trim not only the white spaces, and also '
    ' and '
    ' chars

  • @aht786
    @aht786 Рік тому +1

    Thanks for such a useful tip.

  • @MrOudoum
    @MrOudoum Рік тому +1

    2:46 you mean overload instead of override