c# 4.0 - using like operator in if operator in C# - Stack Overflow

PHOTO EMBED

Thu May 12 2022 21:09:22 GMT+0000 (UTC)

Saved by @javicinhio #cs

if(!String.IsNullOrEmpty(richTextBox_MWE.Text) && richTextBox_MWE.Text.Trim().Contains(textBox1.Text.Trim()))
{
  label5.BackColor = Color.Green;
}
content_copyCOPY

https://stackoverflow.com/questions/24327330/using-like-operator-in-if-operator-in-c-sharp