This will be a simple and a short one, but wanted to put this on my blog, because I am catching myself searching online for this thing from time to time. So, for my sake I have put it on here :)
The thing is we have an object but the method we are sending it to requires a list of objects of the same type.
I will demonstrate with a simple example how to solve this.
object alone = value; object[] bunch = new object[]{ alone };Until next time, Have a good day
No comments:
Post a Comment