try this
object[] objs = new object[] {obj1, obj2};
for more details about array http://msdn.microsoft.com/en-us/library/9b9dty7d.aspx
You can also find more on http://www.dotnetperls.com/object-array
More Related Contents:
- Ordered Unique Combinations [closed]
- Converting strings to arrays c#
- C# appointing distinct array elements randomly to another array
- Merge two arrays and return sorted array in c# [closed]
- Pass an array of integers to ASP.NET Web API?
- Cannot deserialize the JSON array (e.g. [1,2,3]) into type ‘ ‘ because type requires JSON object (e.g. {“name”:”value”}) to deserialize correctly
- Adding values to a C# array
- Byte array to image conversion
- How to store int[] array in application Settings
- How to resize multidimensional (2D) array in C#?
- Overhead of a .NET array?
- How to “flatten” or “index” 3D-array in 1D array?
- Fast way to convert a two dimensional array to a List ( one dimensional )
- What is the use of the ArraySegment class?
- Testing equality of arrays in C#
- Copy Arrays to Array
- Correlation of two arrays in C#
- C# Cast Entire Array?
- How to get a dimension (slice) from a multidimensional array
- Cannot deserialize the current JSON array (e.g. [1,2,3])
- Pick Random String From Array
- Random number generator in C# – unique values
- C# Permutation of an array of arraylists?
- Iterate through 2 dimensional array c#
- Why can’t I use the array initializer with an implicitly typed variable?
- convert string array to string
- How can I safely convert a byte array into a string and back? [duplicate]
- Why do arrays in .net only implement IEnumerable and not IEnumerable?
- Is string actually an array of chars or does it just have an indexer?
- Find the first occurrence/starting index of the sub-array in C#