This:
internalstaticclassProgram{staticvoidMain(){Types=typeof(Program).Assembly.GetType("Outer`1+Inner");Typei=s.GetInterface("IStatics");s.GetInterfaceMap(i);}}classOuter<TOuter>{structInner:IStatics{publicstaticvoidM<TInner>()whereTInner:IConstraint{}}interfaceIStatics{staticabstractvoidM<TInner>()whereTInner:IConstraint;}interfaceIConstraint{}}throws:
Unhandled exception. System.Security.VerificationException: Method Outer`1+Inner[TOuter].M: type argument 'TInner' violates the constraint of type parameter 'TInner'.
at System.RuntimeType.GetInterfaceMap(Type ifaceType)
Is that expected?
This:
throws:
Is that expected?