Top "Optional-parameters" questions

An optional parameter is one that a caller can include in a call to a function or method, but doesn't have to.

Workaround for optional ref parameters in C#

I'm trying to write a method that takes references to boolean flags and modify them. The booleans are all declared …

c# c#-3.0 optional-parameters ref
System.MissingMethodException after adding an optional parameter

I am getting error of System.MissingMethodException after I have an optional parameter in one component and the other component …

c# .net vb.net-2010 optional-parameters missingmethodexception
Optional parameters and option types using F#

Consider the following code: type Test () = member o.fn1 (?bo) = 1 member o.fn2 (?bo) = o.fn1 bo member o.fn3 (?…

f# types option optional-parameters
Jenkins: How to show/hide string parameter fields, after checkbox is un/checked?

I need to create Jenkins job, which installs product.iso on defined machine. I have 2 options: latest.iso (path to …

checkbox jenkins show optional-parameters
Only pass parameter if value supplied

Background I've created a wrapper function around Write-EventLog so that I can easily call it without having to concern myself …

powershell parameters optional-parameters powershell-4.0
How to provide default value for a parameter of delegate type in C#?

In C# we can provide default value of the parameters as such: void Foo(int i =0) {} But, when the method …

c# syntax delegates optional-parameters
Activator.CreateInstance with optional parameters

Does anyone know how to instantiate a class using a constructor which has just 1 parameter that is optional? I've tried …

reflection .net-4.0 optional-parameters