What about this gem?
-
array = new T[1];
array[array.Length - 1] = handler;is
array[0]
not allowed in c#?
-
array = new T[1];
array[array.Length - 1] = handler;is
array[0]
not allowed in c#?
Yes you can, but someone in a near future may say it's Hard Coded!! :laugh: :laugh: :laugh:
Regards Vallarasu S | FSharpMe.blogspot.com
-
Yes you can, but someone in a near future may say it's Hard Coded!! :laugh: :laugh: :laugh:
Regards Vallarasu S | FSharpMe.blogspot.com
some might actually do. I know a person who says worlds ending soon, so lets not design!! :wtf:
-
array = new T[1];
array[array.Length - 1] = handler;is
array[0]
not allowed in c#?
-
An array with one element! Now that's thinking outside the box. ;)
"You get that on the big jobs."
I missed to recognize that.... have my vote of 5 for "eye for detail" lol :)
-
array = new T[1];
array[array.Length - 1] = handler;is
array[0]
not allowed in c#?
Actually, that would be a very logical thing to do if the size of the array could change and the requirement was that the last element of the array be set to that particular value. If that's the case, I'd prefer the "1" to be a const int rather than hardcoded. And some comments would also be nice.