What is the String.Contains method in C#? (2024)

Overview

In C#, String.Contains() is an instance method of the String class. It is used to find whether a given string contains characters. If it finds a matching substring in this particular string, it returns True. If not, it returns False.

Syntax

public bool Contains (string substring)// or public bool Contains (Char value)

Parameters

String substring // the string to be searched// or Char value // character to be seeked

Returns value

Boolean: It returns True or False based on whether the string contains the given substring.

If the passed substring is null, itthrows an ArgumentNullException error.

Code

What is the String.Contains method in C#? (2024)
Top Articles
Charities with the highest income England and Wales 2023 | Statista
Medical Billing Fraud: Upcoding & Unbundling Whistleblower Attorneys | Price Armstrong
Mybranch Becu
Ohio Houses With Land for Sale - 1,591 Properties
Skyward Houston County
Combat level
Blanchard St Denis Funeral Home Obituaries
Overnight Cleaner Jobs
Koordinaten w43/b14 mit Umrechner in alle Koordinatensysteme
Chelsea player who left on a free is now worth more than Palmer & Caicedo
Polyhaven Hdri
Skip The Games Norfolk Virginia
Mills and Main Street Tour
Gon Deer Forum
979-200-6466
Spectrum Field Tech Salary
Craigslist Red Wing Mn
Charter Spectrum Store
Lonesome Valley Barber
Swgoh Blind Characters
Kamzz Llc
If you have a Keurig, then try these hot cocoa options
Brbl Barber Shop
What Is The Lineup For Nascar Race Today
The best brunch spots in Berlin
Mineral Wells Skyward
Piedmont Healthstream Sign In
Medline Industries, LP hiring Warehouse Operator - Salt Lake City in Salt Lake City, UT | LinkedIn
Studentvue Calexico
Danielle Moodie-Mills Net Worth
Tomb Of The Mask Unblocked Games World
Lcsc Skyward
Possum Exam Fallout 76
Myra's Floral Princeton Wv
Swimgs Yuzzle Wuzzle Yups Wits Sadie Plant Tune 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Autumns Cow Dog Pig Tim Cook’s Birthday Buff Work It Out Wombats Pineview Playtime Chronicles Day Of The Dead The Alpha Baa Baa Twinkle
Siskiyou Co Craigslist
Jay Gould co*ck
Zero Sievert Coop
Nobodyhome.tv Reddit
Frommer's Philadelphia & the Amish Country (2007) (Frommer's Complete) - PDF Free Download
Obituaries in Hagerstown, MD | The Herald-Mail
Bunkr Public Albums
Silicone Spray Advance Auto
Dicks Mear Me
City Of Irving Tx Jail In-Custody List
Bf273-11K-Cl
Food and Water Safety During Power Outages and Floods
Craiglist.nj
Naughty Natt Farting
Latest Posts
Article information

Author: Sen. Emmett Berge

Last Updated:

Views: 6071

Rating: 5 / 5 (60 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Sen. Emmett Berge

Birthday: 1993-06-17

Address: 787 Elvis Divide, Port Brice, OH 24507-6802

Phone: +9779049645255

Job: Senior Healthcare Specialist

Hobby: Cycling, Model building, Kitesurfing, Origami, Lapidary, Dance, Basketball

Introduction: My name is Sen. Emmett Berge, I am a funny, vast, charming, courageous, enthusiastic, jolly, famous person who loves writing and wants to share my knowledge and understanding with you.