As the question depicts, what does the following code mean?
public void blabla (bool? isActive = false) {
}
Well, it is a void method (returns nothing) taking an optional parameter (isActive = false
) of a nullable boolean (bool?
), where the default value is false.
It is a public method, meaning that code that has access to the class / struct that contains this method can see the method. The public
is called an access modifier.
Access modifiers:
http://msdn.microsoft.com/en-us/library/wxh6fsc7(v=VS.100).aspx
Optional parameters:
http://msdn.microsoft.com/en-us/library/dd264739.aspx
Nullable types:
http://msdn.microsoft.com/en-us/library/1t3y8s4s(v=VS.100).aspx
As for it's significance, that depends if it's responsible for keeping planes in the air or not :-P
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With