-5

i am writing an application someone could help me with just giving me sample code ! i'm stuck in this place ! any one have any ideas ?

bool bl = false;
using (StreamReader reader = new StreamReader(response.GetResponseStream()))
bl = !reader.ReadToEnd().Contains("auto_load_more_enabled");
if (reader.ReadToEnd().Contains("wait"))
{
    bl = true;
}
MdSalehGh
  • 41
  • 1
  • 8

2 Answers2

1

You are looking at a negation operator, the ! placed in from of a boolean expression inverse the result.

You can see more on MSDN

Franck
  • 4,438
  • 1
  • 28
  • 55
0

! is the NOT (negation) logical operator.

It transform a false to true and true to false.

Boolean logical operators (C# reference)