private void Load(){
try{
if (String.Compare(this.assemblyName, "mscorlib", StringComparison.OrdinalIgnoreCase) == 0)
this.assembly = typeof(Object).Module.Assembly;
else if (String.Compare(this.assemblyName, "Microsoft.JScript", StringComparison.OrdinalIgnoreCase) == 0)
this.assembly = typeof(VsaEngine).Module.Assembly;
else if (String.Compare(this.assemblyName, "Microsoft.Vsa", StringComparison.OrdinalIgnoreCase) == 0)
this.assembly = typeof(IVsaEngine).Module.Assembly;
else if (String.Compare(this.assemblyName, "System", StringComparison.OrdinalIgnoreCase) == 0)
this.assembly = typeof(System.Text.RegularExpressions.Regex).Module.Assembly;
else{
this.assembly = Assembly.Load(this.assemblyName);
}
}catch(System.BadImageFormatException e){
throw new VsaException(VsaError.AssemblyExpected, this.assemblyName, e);
}catch(System.IO.FileNotFoundException e){
throw new VsaException(VsaError.AssemblyExpected, this.assemblyName, e);
}catch(System.ArgumentException e){
throw new VsaException(VsaError.AssemblyExpected, this.assemblyName, e);
}catch(Exception e){
throw new VsaException(VsaError.InternalCompilerError, e.ToString(), e);
}catch{
throw new VsaException(VsaError.InternalCompilerError);
}
if (this.assembly == null){
throw new VsaException(VsaError.AssemblyExpected, this.assemblyName);
}
}