Convert a custom object array to System.Array in C#
.net, c#
Solution
No conversion is needed for that as far as I know. You can simply go ahead and pass your array to the method. The following code works out well:
MyClass[] myClassArray = new MyClass[2];
myClassArray[0] = new MyClass();
myClassArray[1] = new MyClass();
Load(myClassArray, "some text");
Problem
I have an array of custom objects. MyCustomArr[]. I want to convert this to System.Array so that I can pass it to a method that accepts only System.Array. The signature of the method is: ``` public void Load(Array param1, string param2) { } ```