コード例 #1
0
 public DebugDocument(WindowsScriptEngine engine, UIntPtr sourceContext, UniqueDocumentInfo documentInfo, string code)
 {
     this.engine        = engine;
     this.sourceContext = sourceContext;
     this.documentInfo  = documentInfo;
     Code = code;
     Initialize();
 }
コード例 #2
0
        public static object Wrap(WindowsScriptEngine engine, object obj)
        {
            Debug.Assert(!(obj is IScriptMarshalWrapper));

            if (obj == null)
            {
                return(null);
            }

            if ((obj is IDispatchEx target) && (obj.GetType().IsCOMObject))
            {
                return(new WindowsScriptItem(engine, target));
            }

            return(obj);
        }
コード例 #3
0
 public ScriptSite(WindowsScriptEngine engine)
 {
     this.engine = engine;
 }
コード例 #4
0
 private WindowsScriptItem(WindowsScriptEngine engine, IDispatchEx target)
 {
     this.engine = engine;
     this.target = target;
 }