Interface arrays
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, Is it possible to have an array of Interfaces ? This doesnt work IInterface[] foobar = new IInterface[3]; So how would i go about it ?
It works fine on my RC1 machine.
namespace Test
{
public interface ITest
{
int GetTest();
}public class EntryPoint { public static void Main() { // Compiles fine--haven't actually run it... ITest\[\] test = new ITest\[3\]; } }
}
-- Peter Stephens