It seems, that D.Net still has no support for the ParamArrayAttribute. Thus you have to pass these
arguments as an inline array.
sb.ApendFormat('{0} {1} {2} {3}',
['a', 'b', 'c', 'd']);
Funny though, you already did it in the other post of yours (the one with the escape sequences).
>
> It seems, that D.Net still has no support for the ParamArrayAttribute.
> Thus you have to pass these arguments as an inline array.
> sb.ApendFormat('{0} {1} {2} {3}',
> ['a', 'b', 'c', 'd']);
>
> Funny though, you already did it in the other post of yours (the one
> with the escape sequences).
Thanks.I never thought i will have to do it every where.More over there
was no issue with 3 params.
venkatesh
> It seems, that D.Net still has no support for the ParamArrayAttribute. Thus you have to pass these
> arguments as an inline array.
> sb.ApendFormat('{0} {1} {2} {3}',
> ['a', 'b', 'c', 'd']);
I think they just chose to implement it in a way that was more
consistent with other variable parameter methods like System.Format.
The reason it works with up to 3 parameters is that AppendFormat is
overloaded.
--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com
The last parameter is marked with [ParamArray], which usually means that you can provide these values
as if they were parameters, instead of an array.
>
> The reason it works with up to 3 parameters is that AppendFormat is
> overloaded.
>
Yepp :-)