Class<T,C> and Activator.CreateInstance
Here is some class:

    public class MyClass<T, C> : IMyClass where T : SomeTClass
                                                  where C : SomeCClass
    {
        private T t;
        private C c;


        public MyClass()
        {
            this.t= Activator.CreateInstance<T>();
            this.c= Activator.CreateInstance<C>();
        }
    }

And I'm trying to instanciate object of this class by doing this:

                Type type = typeof(MyClass<,>).MakeGenericType(typeOfSomeTClass, typeOfSomeCClass);
                object instance = Activator.CreateInstance(type);

And all I get is a `System.MissingMethodException`(there is no no-arg constructor for this object)...

What is wrong with my code?
Class<T,C> and Activator.CreateInstance
===

Here is some class:

    public class MyClass<T, C> : IMyClass where T : SomeTClass
                                                  where C : SomeCClass
    {
        private T t;
        private C c;


        public MyClass()
        {
            this.t= Activator.CreateInstance<T>();
            this.c= Activator.CreateInstance<C>();
        }
    }

And I'm trying to instanciate object of this class by doing this:

                Type type = typeof(MyClass<,>).MakeGenericType(typeOfSomeTClass, typeOfSomeCClass);
                object instance = Activator.CreateInstance(type);

And all I get is a `System.MissingMethodException`(there is no no-arg constructor for this object)...

What is wrong with my code?