Exemplo n.º 1
0
        public static Value NewObject(Process process, DebugType debugType)
        {
            ICorDebugType  ppTypeArgs = null;
            ICorDebugValue ppArgs     = null;
            Eval           e          = new Eval(
                process,
                "New object: " + debugType.Token,
                delegate(ICorDebugEval corEval) { corEval.CastTo <ICorDebugEval2>().NewParameterizedObject
                                                      (debugType.GetDefaultConstructor(), (uint)debugType.GenericArguments.Count, ref ppTypeArgs, 0, ref ppArgs); }
                );

            return(e.EvaluateNow());
        }