C# String Contains()The C# Contains() method is used to return a value indicating whether the specified substring occurs within this string or not. If the specified substring is found in this string, it returns true otherwise false. SignatureParametersstr: it is a string object which is used to check occurrence in the calling string. ReturnIt returns boolean value either true or false. C# String Contains() method ExampleOutput: True False
Next TopicC# String Copy()
|