public string GetErrorMessageForHR(int hr, IJSVsaEngine engine) { CultureInfo culture = null; VsaEngine engine2 = engine as VsaEngine; if (engine2 != null) { culture = engine2.ErrorCultureInfo; } if (((hr & 0xffff0000L) == 0x800a0000L) && Enum.IsDefined(typeof(JSError), hr & 0xffff)) { int num = hr & 0xffff; return JScriptException.Localize(num.ToString(CultureInfo.InvariantCulture), culture); } int num2 = 0x177b; return JScriptException.Localize(num2.ToString(CultureInfo.InvariantCulture), "0x" + hr.ToString("X", CultureInfo.InvariantCulture), culture); }
public string GetErrorMessageForHR(int hr, IJSVsaEngine engine) { CultureInfo culture = null; VsaEngine engine2 = engine as VsaEngine; if (engine2 != null) { culture = engine2.ErrorCultureInfo; } if (((hr & 0xffff0000L) == 0x800a0000L) && Enum.IsDefined(typeof(JSError), hr & 0xffff)) { int num = hr & 0xffff; return(JScriptException.Localize(num.ToString(CultureInfo.InvariantCulture), culture)); } int num2 = 0x177b; return(JScriptException.Localize(num2.ToString(CultureInfo.InvariantCulture), "0x" + hr.ToString("X", CultureInfo.InvariantCulture), culture)); }
private void AddAssemblyReference(IJSVsaEngine engine, string filename) { IJSVsaReferenceItem item = (IJSVsaReferenceItem) engine.Items.CreateItem(filename, JSVsaItemType.Reference, JSVsaItemFlag.None); item.AssemblyName = filename; }
private void AddAssemblyReference(IJSVsaEngine engine, string filename) { IJSVsaReferenceItem item = (IJSVsaReferenceItem)engine.Items.CreateItem(filename, JSVsaItemType.Reference, JSVsaItemFlag.None); item.AssemblyName = filename; }