CheckTypeProxy() public static method

public static CheckTypeProxy ( Interpreter interpreter, Thread thread, TargetStructObject obj ) : TargetClassObject
interpreter Interpreter
thread Thread
obj Mono.Debugger.Languages.TargetStructObject
return Mono.Debugger.Languages.TargetClassObject
コード例 #1
0
        public static TargetClassObject CheckTypeProxy(Interpreter interpreter, Thread thread,
                                                       TargetStructObject obj)
        {
            if (obj.Type.DebuggerTypeProxyAttribute == null)
            {
                return(null);
            }

            ScriptingContext expr_context = new ScriptingContext(interpreter);

            expr_context.CurrentThread    = thread;
            expr_context.CurrentLanguage  = obj.Type.Language;
            expr_context.ImplicitInstance = obj;

            return(expr_context.CheckTypeProxy(obj));
        }
コード例 #2
0
ファイル: ScriptingContext.cs プロジェクト: baulig/debugger
        public static TargetClassObject CheckTypeProxy(Interpreter interpreter, Thread thread,
								TargetStructObject obj)
        {
            if (obj.Type.DebuggerTypeProxyAttribute == null)
                return null;

            ScriptingContext expr_context = new ScriptingContext (interpreter);
            expr_context.CurrentThread = thread;
            expr_context.CurrentLanguage = obj.Type.Language;
            expr_context.ImplicitInstance = obj;

            return expr_context.CheckTypeProxy (obj);
        }