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
Watch video Search Methods in the C# String Class online without registration, duration hours minute second in high quality. This video was added by user Paul D. Sheriff 10 April 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 77 once and liked it 6 people.