I have the below code that was working fine until I tried adding the bool NetworkAvailable = true portion. Now I get a Method name expected compil
bool NetworkAvailable = true
Method name expected
A delegate points to a method definition. When you instantiate a delegate pointing to a method, you cannot specify any parameters.
Instead, you need to pass the parameter values to the Invoke method, like this:
Invoke
SetUpdateHUDConnectedMode d = UpdateHUDConnectedMode; this.Invoke(d, e.IsAvailable);