As the question depicts, what does the following code mean?
public void blabla (bool? isActive = false) {
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
publicis 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 😛