views:

198

answers:

2

Is there a way to have named arguments like in perl/python

for example

object.method(arg1 => value1, arg2 => value2, arg3 => 0);

in C# prior to C# 4.0?

+14  A: 

method named arguments are C# 4.0 feature. (You can't have method optional parameters in C# < 4.0)

Svetlozar Angelov
+4  A: 

It is not possible before C# 4.0.

BTW, there is no such thing as C# 2.5.

John Saunders