public DebugDocument(WindowsScriptEngine engine, UIntPtr sourceContext, UniqueDocumentInfo documentInfo, string code) { this.engine = engine; this.sourceContext = sourceContext; this.documentInfo = documentInfo; Code = code; Initialize(); }
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); }
public ScriptSite(WindowsScriptEngine engine) { this.engine = engine; }
private WindowsScriptItem(WindowsScriptEngine engine, IDispatchEx target) { this.engine = engine; this.target = target; }