Use String.Contains:
if (stringValue.Contains(anotherStringValue))
{
// Do Something //
}
More Related Contents:
- How to create an object during runtime in .net
- Check if a class is derived from a generic class
- Mocking Extension Methods with Moq
- How to change row color in datagridview?
- How to calculate the angle between a line and the horizontal axis?
- OpenSubKey() returns null for a registry key that I can see in regedit.exe
- Convert string to DateTime in c#
- Detect if a method was overridden using Reflection (C#)
- Overhead of a .NET array?
- Alternatives to System.Drawing for use with ASP.NET?
- ObservableCollection vs. List
- C# – Capturing the Mouse cursor image
- Graphics.DrawString vs TextRenderer.DrawText?Which can Deliver Better Quality
- How can I show the “Open with” file dialog?
- ComboBox Dropdown Position
- Process queue with multithreading or tasks
- Console.WriteLine and generic List
- Total number of items defined in an enum
- Protect .NET code from reverse engineering?
- Read HttpContent in WebApi controller
- How to check if a file is signed in C#? [closed]
- How can I fix the error : “Unreachable Code Detected”
- .NET Short Unique Identifier
- Is there a jQuery-like CSS/HTML selector that can be used in C#?
- How to deserialize a property with a dash (“-”) in its name with NewtonSoft JsonConvert?
- Differences in development between .NET and Mono
- When is the best place to use Task.Result instead of awaiting Task
- Formatting Large Numbers with .NET
- What is the difference between Property and Dependency Property
- Writing to file in a thread safe manner