Tag Info

New answers tagged

0

This looks like a job for reflection: public T MockType<T>(Dictionary<string,object> fieldValues, params object[] consParams) { var type = typeof (T); var cons = type.GetConstructor(BindingFlags.NonPublic, Type.DefaultBinder, consParams.Select(p => ...



Top 50 recent answers are included