[Mono-list] Mcs/class/System/Microsoft.VisualBasic/VBCodeCompiler

Jochen Wezel jwezel@compumaster.de
Tue, 8 Jul 2003 17:44:24 +0200


This is a multi-part message in MIME format.

------_=_NextPart_001_01C34567.CE64B158
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_002_01C34567.CE64B158"


------_=_NextPart_002_01C34567.CE64B158
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

To attention for Andreas Nahr

Here is the VisualBasicCodeCompiler module for Microsoft.VisualBasic
Please take a look into.

 <<VisualBasicCodeCompiler.cs>>=20

I suggest to rename the VBCodeGenerator & Co. to
VisualBasicCodeGenerator as Microsoft does.
Then it should compile fine (I hope).

Please add my e-mail address (jwezel@compumaster.de) to all responses.

Jochen


************************************************************************
****
CompuMaster GmbH
Fon: +49 6747 95084-12 / Fax: +49 6747 95084-50
http://www.compumaster.de eMail: jwezel@compumaster.de
************************************************************************
****


------_=_NextPart_002_01C34567.CE64B158
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6249.1">
<TITLE>Mcs/class/System/Microsoft.VisualBasic/VBCodeCompiler</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">To attention for Andreas Nahr</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Here is the VisualBasicCodeCompiler =
module for Microsoft.VisualBasic</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Please take a look into.</FONT>
</P>

<P><FONT FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000"> =
&lt;&lt;VisualBasicCodeCompiler.cs&gt;&gt; </FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I suggest to rename the VBCodeGenerator =
&amp; Co. to VisualBasicCodeGenerator as Microsoft does.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Then it should compile fine (I =
hope).</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Please add my e-mail address =
(jwezel@compumaster.de) to all responses.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Jochen</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Courier =
New">********************************************************************=
********</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">CompuMaster GmbH</FONT>

<BR><SPAN LANG=3D"fr"><FONT SIZE=3D2 FACE=3D"Courier New">Fon: +49 6747 =
95084-12 / Fax: +49 6747 95084-50</FONT></SPAN>

<BR><SPAN LANG=3D"de"></SPAN><A HREF=3D"http://www.compumaster.de"><SPAN =
LANG=3D"de"><U><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier =
New">http://www.compumaster.de</FONT></U></SPAN><SPAN =
LANG=3D"de"></SPAN></A><SPAN LANG=3D"de"></SPAN><SPAN =
LANG=3D"de"></SPAN><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier =
New"> eMail: jwezel@compumaster.de</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier =
New">********************************************************************=
********</FONT></SPAN>
</P>

</BODY>
</HTML>
------_=_NextPart_002_01C34567.CE64B158--

------_=_NextPart_001_01C34567.CE64B158
Content-Type: application/octet-stream;
	name="VisualBasicCodeCompiler.cs"
Content-Transfer-Encoding: base64
Content-Description: VisualBasicCodeCompiler.cs
Content-Disposition: attachment;
	filename="VisualBasicCodeCompiler.cs"

Ly8NCi8vIE1pY3Jvc29mdCBWaXN1YWxCYXNpYyBWQkNvZGVDb21waWxlciBDbGFzcyBpbXBsZW1l
bnRhdGlvbg0KLy8NCi8vIEF1dGhvcjoNCi8vICAgSm9jaGVuIFdlemVsIChqd2V6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