An optional parameter is one that a caller can include in a call to a function or method, but doesn't have to.
Is there any way to create a constant object(ie it cannot be edited and is created at compile time)? …
c# constants optional-parametersso .Net 4 added named and optional parameters which are pretty sweet. I don't need to make as many 1 line overload …
.net wcf .net-4.0 optional-parameters named-parametersI have been reading through this similar question and find myself less than satisfied with the responses. I don't have …
c++ optional-parametersIn other languages I can set up the method signature like cookEgg(boolean hardBoiled = true) This defaults the parameter hardboiled …
c# .net parameters default-value optional-parametersI ran into this issue today when creating a struct to hold a bunch of data. Here is an example: …
c# struct optional-parameters default-constructorExample: public int foo(int x, int optionalY = 1, int optionalZ = 2) { ... } I'd like to call it like this: int returnVal = foo(5,,8); …
c# optional-parametersI have the following code: public static MyMethod() { ...Do something ProtectedMethod(param1, param2); ...Do something } protected static void ProtectedMethod(IEnumerable&…
c# oop delegates optional-parametersSCENARIO I'm writing a cmdlet for Powershell 2.0 using Visual Studio 2008 and .NET 3.5 the cmdlet requires 3 arguments. my intended grammar of …
powershell parameters optional-parametersI've used advanced parameter handling to support multiple parameter sets. Is there any pre-defined variable or way to determine which …
powershell parameters optional-parametersHow can I declare a managed method in C++/CLI that has an optional parameter when used from C#? I've …
c# .net c++-cli optional-parameters