Lesson: Search Methods in the C# String Class
Technologies: C# and .NET Core
Lesson Description
In this lesson you learn to use methods of the String class to search for a character or a string within another string using the methods IndexOf(), LastIndexOf(), IndexOfAny(), and LastIndexAny().
Contents
Introduction 00:00
Prerequisites 00:37
Lesson Objectives 00:42
Searching Methods IndexOf() and LastIndexOf() 00:53
DEMO: Using the String.IndexOf() Method in C# 01:15
DEMO: Using the String.LastIndexOf() Method in C# 04:07
Searching Methods IndexOfAny() and LastIndexOfAny() 06:09
DEMO: Using the String.IndexOfAny() Method in C# 06:37
DEMO: Using the String.LastIndexOfAny() Method in C# 08:54
Helpful Links
Samples and hands-on labs for this course: https://www.pdsa.com/YouTube
String Class
https://learn.microsoft.com/en-us/dot...
String.Contains Method
https://learn.microsoft.com/en-us/dot...
String.IndexOf Method
https://learn.microsoft.com/en-us/dot...
String.IndexOfAny Method
https://learn.microsoft.com/en-us/dot...
String.LastIndexOf Method
https://learn.microsoft.com/en-us/dot...
String.LastIndexOfAny Method
https://learn.microsoft.com/en-us/dot...
#csharp #string #stringhandling #indexof #lastindexof #indexofany #lastindexofany #dotnet #dotnetcore #pauldsheriff #pdsa #pluralsight #youtube
Paul.About()
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.
Paul.Contact()
Website: https://www.pdsa.com
Email: [email protected]
LinkedIn: / paulsheriff
Blog: https://blogs.pdsa.com/
Pluralsight: https://app.pluralsight.com/profile/a...
YouTube Channel: @pauldsheriff
Смотрите видео Search Methods in the C# String Class онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Paul D. Sheriff 10 Апрель 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 77 раз и оно понравилось 6 людям.