mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f9059cfb8 |
No files matched your search
@@ -1,132 +1,3 @@
|
||||
|
||||
Fri Jul 19 18:38:38 CEST 2002 Paolo Molaro <[email protected]>
|
||||
|
||||
* configure.in, Makefile.am, mono.pc.in: add a mono.pc file for use
|
||||
with pkg-config.
|
||||
* */Makefile.am: makefile overhaul to create a shared libmono library.
|
||||
* */*.h: do not include config.h in headers that should be installed.
|
||||
|
||||
2002-07-12 Dick Porter <[email protected]>
|
||||
|
||||
* acconfig.h:
|
||||
* configure.in: Check the size of sockaddr_un.sun_path
|
||||
|
||||
2002-06-23 Miguel de Icaza <[email protected]>
|
||||
|
||||
* man/Makefile.am (man_MANS): Added new man page
|
||||
|
||||
* man/mono-config.5: New manual page describing the mono-config
|
||||
file format.
|
||||
|
||||
2002-06-10 Jaroslaw Kowalski <[email protected]>
|
||||
|
||||
* configure.in: added checks for MSG_NOSIGNAL
|
||||
|
||||
2002-05-30 Daniel Morgan <[email protected]>
|
||||
|
||||
* doc/ado-net: update the ado-net web page on go-mono.com
|
||||
input parameters support, beginnings of Mono.Data.MySQL
|
||||
and System.Data.OleDb, updated the sample source code,
|
||||
and output from a PostgresTest
|
||||
|
||||
2002-05-21 Martin Baulig <[email protected]>
|
||||
|
||||
* mono.1: Documented the "--debug-args" debugging arguments.
|
||||
|
||||
2002-05-21 Martin Baulig <[email protected]>
|
||||
|
||||
* mono.1: Updated to reflect my latest changes and beautified this a bit.
|
||||
(FIXME: There are still command line argument which aren't documented here.)
|
||||
|
||||
2002-05-19 Daniel Morgan <[email protected]>
|
||||
|
||||
* doc/ado-net: updated page to include C# code snippets using
|
||||
System.Data. Update status: handle reading NULL values, DataSet/DataAdapter
|
||||
works, executing/reading multiple results, and stored procedures.
|
||||
And other tweaks about the providers.
|
||||
|
||||
2002-05-19 Martin Baulig <[email protected]>
|
||||
|
||||
* mono/Makefile.am (SUBDIRS): Added `os', it's referenced by
|
||||
interpreter/Makefile.am.
|
||||
|
||||
Wed May 15 12:22:09 CEST 2002 Paolo Molaro <[email protected]>
|
||||
|
||||
* configure.in: search for pthread functions also in libc_r (patch
|
||||
from Garrett Rooney <[email protected]>).
|
||||
|
||||
2002-05-11 Daniel Morgan <[email protected]>
|
||||
|
||||
* doc/ado-net: added instructions for installing PostgreSQL on Linux
|
||||
and for using nant to re-compile just the System.Data.dll assembly
|
||||
on Windows.
|
||||
|
||||
2002-05-10 Rodrigo Moya <[email protected]>
|
||||
|
||||
* doc/ado-net: added instructions for compiling System.Data.dll
|
||||
(a subset of) on Linux.
|
||||
|
||||
2002-05-10 Daniel Morgan <[email protected]>
|
||||
|
||||
* doc/ado-net: added links
|
||||
|
||||
2002-05-09 Dick Porter <[email protected]>
|
||||
|
||||
* configure.in: Set CPPFLAGS not CFLAGS (bug 23767)
|
||||
|
||||
2002-05-05 Daniel Morgan <[email protected]>
|
||||
|
||||
* doc/ado-net: correct formatting
|
||||
* doc/index: added credit i forgot to add
|
||||
|
||||
2002-05-05 Daniel Morgan <[email protected]>
|
||||
|
||||
* doc/ado-net: i did not format it correctly earlier, i
|
||||
tried added various tags where appropriate.
|
||||
|
||||
* doc/index: added news item for May 5, 2002 - ado.net able
|
||||
to retrieve data now
|
||||
|
||||
2002-05-05 Daniel Morgan <[email protected]>
|
||||
|
||||
* doc/ado-net: updated the current status which
|
||||
I kept forgetting to do.
|
||||
|
||||
2002-05-05 Daniel Morgan <[email protected]>
|
||||
|
||||
* doc/ado-net: updated to includes an example for
|
||||
running ipc-daemon as a Windows service. Thanks
|
||||
to gonzalo.
|
||||
|
||||
2002-05-05 Daniel Morgan <[email protected]>
|
||||
|
||||
* doc/ado-net: updated to include installation of
|
||||
PostgreSQL DBMS under cygwin. It is a TODO for Linux though.
|
||||
Also included notes on running the System.Data/Test/PostgresTest.cs
|
||||
that should work on a lot of Mono installations that have
|
||||
PostgreSQL installed. If not please let me, rodrigo, or gonzalo
|
||||
know.
|
||||
|
||||
2002-05-01 Rodrigo Moya <[email protected]>
|
||||
|
||||
* doc/ado-net: updated a little bit.
|
||||
|
||||
2002-04-30 Jeffrey Stedfast <[email protected]>
|
||||
|
||||
* configure.in: Added checks for timezone stuff.
|
||||
|
||||
2002-04-30 Dick Porter <[email protected]>
|
||||
|
||||
* acconfig.h:
|
||||
* configure.in: Added option to disable using shared memory for
|
||||
handles
|
||||
|
||||
2002-04-28 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* configure.in: fix for conditional "THREADS_PTHREAD" was never
|
||||
defined problem under cygwin with latest version of automake and
|
||||
autoconf. Patch from Jeroen Janssen <[email protected]>.
|
||||
|
||||
2002-04-23 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* configure.in: removed -Wshadow from CFLAGS.
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
|
||||
SUBDIRS = mono doc docs runtime scripts man
|
||||
|
||||
EXTRA_DIST= mono.pc.in
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA= mono.pc
|
||||
DISTCLEANFILES= mono.pc
|
||||
@@ -1,6 +1,5 @@
|
||||
#undef HAVE_INET_PTON
|
||||
#undef HAVE_INET_ATON
|
||||
#undef HAVE_MSG_NOSIGNAL
|
||||
#undef HAVE_SOL_IP
|
||||
#undef HAVE_SOL_TCP
|
||||
#undef HAVE_IP_PKTINFO
|
||||
@@ -14,7 +13,3 @@
|
||||
#undef NAME_DEV_RANDOM
|
||||
#undef HAVE_CRYPT_RNG
|
||||
#undef HAVE_BOEHM_GC
|
||||
#undef DISABLE_SHARED_HANDLES
|
||||
#undef HAVE_TIMEZONE
|
||||
#undef HAVE_TM_GMTOFF
|
||||
#undef MONO_SIZEOF_SUNPATH
|
||||
+8
-87
@@ -2,7 +2,7 @@
|
||||
AC_INIT(README)
|
||||
AC_CANONICAL_SYSTEM
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE(mono, 0.12)
|
||||
AM_INIT_AUTOMAKE(mono, 0.10)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
dnl ****************************************
|
||||
@@ -138,7 +138,7 @@ if test x$platform_win32 = xno; then
|
||||
|
||||
# Check that off_t can represent 2**63 - 1 correctly, working around
|
||||
# potential compiler bugs. Defines LARGE_FILE_SUPPORT, adds $1 to
|
||||
# CPPFLAGS and sets $large_offt to yes if the test succeeds
|
||||
# CFLAGS and sets $large_offt to yes if the test succeeds
|
||||
large_offt=no
|
||||
AC_DEFUN(LARGE_FILES, [
|
||||
large_CPPFLAGS=$CPPFLAGS
|
||||
@@ -160,7 +160,7 @@ if test x$platform_win32 = xno; then
|
||||
], [
|
||||
AC_MSG_RESULT(ok)
|
||||
AC_DEFINE(HAVE_LARGE_FILE_SUPPORT)
|
||||
large_CPPFLAGS="$large_CPPFLAGS $1"
|
||||
CFLAGS="$CFLAGS $1"
|
||||
large_offt=yes
|
||||
], [
|
||||
AC_MSG_RESULT(no)
|
||||
@@ -183,21 +183,6 @@ if test x$platform_win32 = xno; then
|
||||
dnl *****************************
|
||||
AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
|
||||
|
||||
dnl *******************************
|
||||
dnl *** Checks for MSG_NOSIGNAL ***
|
||||
dnl *******************************
|
||||
AC_MSG_CHECKING(for MSG_NOSIGNAL)
|
||||
AC_TRY_COMPILE([#include <sys/socket.h>], [
|
||||
int f = MSG_NOSIGNAL;
|
||||
], [
|
||||
# Yes, we have it...
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_MSG_NOSIGNAL)
|
||||
], [
|
||||
# We'll have to use signals
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
|
||||
dnl *****************************
|
||||
dnl *** Checks for SOL_IP ***
|
||||
dnl *****************************
|
||||
@@ -265,33 +250,10 @@ if test x$platform_win32 = xno; then
|
||||
|
||||
AC_CHECK_FUNCS(inet_pton inet_aton)
|
||||
|
||||
dnl ***********************************************
|
||||
dnl *** Checks for size of sockaddr_un.sun_path ***
|
||||
dnl ***********************************************
|
||||
# AC_CHECK_SIZEOF can't cope with struct members :-(
|
||||
AC_MSG_CHECKING(size of sockaddr_un.sun_path)
|
||||
AC_CACHE_VAL(cv_mono_sizeof_sunpath,
|
||||
[AC_TRY_RUN([
|
||||
#include <stdio.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
int main(void) {
|
||||
struct sockaddr_un sock_un;
|
||||
FILE *f=fopen("conftestval", "w");
|
||||
if(!f) exit(1);
|
||||
fprintf(f, "%d\n", sizeof(sock_un.sun_path));
|
||||
exit(0);
|
||||
}
|
||||
], cv_mono_sizeof_sunpath=`cat conftestval`,
|
||||
cv_mono_sizeof_sunpath=0,
|
||||
cv_mono_sizeof_sunpath=0)])dnl
|
||||
AC_MSG_RESULT($cv_mono_sizeof_sunpath)
|
||||
AC_DEFINE_UNQUOTED(MONO_SIZEOF_SUNPATH, $cv_mono_sizeof_sunpath)
|
||||
|
||||
dnl *****************************
|
||||
dnl *** Checks for libpthread ***
|
||||
dnl *****************************
|
||||
AC_SEARCH_LIBS(pthread_create, pthread c_r, [
|
||||
AC_SEARCH_LIBS(pthread_create, pthread, [
|
||||
AM_CONDITIONAL(THREADS_PTHREAD, true)
|
||||
AC_DEFINE(HAVE_PTHREAD)
|
||||
|
||||
@@ -330,7 +292,7 @@ if test x$platform_win32 = xno; then
|
||||
])
|
||||
])
|
||||
CPPFLAGS=$orig_CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $pthread_CFLAGS"
|
||||
CFLAGS="$CFLAGS $pthread_CFLAGS"
|
||||
|
||||
# Need PTHREAD_MUTEX_RECURSIVE
|
||||
pthread_CFLAGS=""
|
||||
@@ -366,7 +328,7 @@ if test x$platform_win32 = xno; then
|
||||
])
|
||||
])
|
||||
CPPFLAGS=$orig_CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $pthread_CFLAGS"
|
||||
CFLAGS="$CFLAGS $pthread_CFLAGS"
|
||||
], [
|
||||
AC_MSG_ERROR([libpthread is required on non-win32 hosts])
|
||||
])
|
||||
@@ -375,34 +337,7 @@ if test x$platform_win32 = xno; then
|
||||
dnl *** Checks for semaphore lib ***
|
||||
dnl ********************************
|
||||
AC_CHECK_LIB(rt, sem_init, LIBS="$LIBS -lrt")
|
||||
|
||||
dnl ********************************
|
||||
dnl *** Checks for timezone stuff **
|
||||
dnl ********************************
|
||||
AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
|
||||
AC_TRY_COMPILE([
|
||||
#include <time.h>
|
||||
], [
|
||||
timezone = 1;
|
||||
], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
|
||||
if test $ac_cv_var_timezone = yes; then
|
||||
AC_DEFINE(HAVE_TIMEZONE)
|
||||
else
|
||||
AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
|
||||
AC_TRY_COMPILE([
|
||||
#include <time.h>
|
||||
], [
|
||||
struct tm tm;
|
||||
tm.tm_gmtoff = 1;
|
||||
], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
|
||||
if test $ac_cv_struct_tm_gmtoff = yes; then
|
||||
AC_DEFINE(HAVE_TM_GMTOFF)
|
||||
else
|
||||
AC_ERROR(unable to find a way to determine timezone)
|
||||
fi
|
||||
fi
|
||||
else
|
||||
AM_CONDITIONAL(THREADS_PTHREAD, false)
|
||||
# This is a kludge, we really ought to test for libws2_32, but
|
||||
# I can't make AC_CHECK_LIB link (the symbols seem to be mangled
|
||||
# with @num suffixes)
|
||||
@@ -496,14 +431,6 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([if inter-process shared handles are requested])
|
||||
AC_ARG_ENABLE(shared-handles, [ --disable-shared-handles disable inter-process shared handles], try_shared_handles=$enableval, try_shared_handles=yes)
|
||||
AC_MSG_RESULT($try_shared_handles)
|
||||
if test "x$try_shared_handles" != "xyes"; then
|
||||
AC_DEFINE(DISABLE_SHARED_HANDLES)
|
||||
AC_SUBST(DISABLE_SHARED_HANDLES)
|
||||
fi
|
||||
|
||||
TARGET="unknown"
|
||||
ACCESS_UNALIGNED="yes"
|
||||
|
||||
@@ -514,11 +441,11 @@ sparc*-*-*) TARGET=SPARC; arch_target=sparc; ACCESS_UNALIGNED="no";;
|
||||
#alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; ACCESS_UNALIGNED="no";;
|
||||
#m68k-*-linux*) TARGET=M68K;;
|
||||
powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; arch_target=ppc;;
|
||||
arm-*-linux-* | armv4l-*-linux-*) TARGET=ARM; arch_target=arm; ACCESS_UNALIGNED="no";;
|
||||
arm-*-linux-*) TARGET=ARM; arch_target=arm; ACCESS_UNALIGNED="no";;
|
||||
esac
|
||||
|
||||
if test ${TARGET} = unknown; then
|
||||
CPPFLAGS="$CPPFLAGS -DNO_PORT"
|
||||
CFLAGS="$CFLAGS -DNO_PORT"
|
||||
AC_MSG_WARN("mono has not been ported to $host: some things may not work.")
|
||||
fi
|
||||
|
||||
@@ -537,20 +464,15 @@ AM_CONDITIONAL(ARM, test x$TARGET = xARM)
|
||||
|
||||
AC_SUBST(arch_target)
|
||||
AC_SUBST(CFLAGS)
|
||||
AC_SUBST(CPPFLAGS)
|
||||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
mono.pc
|
||||
mono/Makefile
|
||||
mono/utils/Makefile
|
||||
mono/metadata/Makefile
|
||||
mono/dis/Makefile
|
||||
mono/cil/Makefile
|
||||
mono/arch/Makefile
|
||||
mono/os/Makefile
|
||||
mono/os/win32/Makefile
|
||||
mono/os/unix/Makefile
|
||||
mono/arch/x86/Makefile
|
||||
mono/arch/ppc/Makefile
|
||||
mono/arch/sparc/Makefile
|
||||
@@ -562,7 +484,6 @@ mono/monoburg/Makefile
|
||||
mono/monograph/Makefile
|
||||
mono/jit/Makefile
|
||||
mono/io-layer/Makefile
|
||||
mono/handles/Makefile
|
||||
runtime/Makefile
|
||||
scripts/Makefile
|
||||
man/Makefile
|
||||
|
||||
+20
-772
@@ -1,796 +1,44 @@
|
||||
* ADO.NET
|
||||
|
||||
The coordinator for the ADO.NET implementation is <a
|
||||
href="mailto:[email protected]">Rodrigo Moya</a>, with
|
||||
the collaboration of <a href="mailto:[email protected]">Daniel
|
||||
Morgan</a> and <a href="mailto:[email protected]">Tim Coleman</a>.
|
||||
|
||||
href="mailto:[email protected]">Rodrigo Moya</a>.
|
||||
|
||||
* Action plan
|
||||
|
||||
The current plan to implement ADO.NET is as follows:
|
||||
|
||||
<b>Step 1:</b> Initial <a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatasqlclient.asp?frame=true">System.Data.SqlClient</a> Provider:
|
||||
<b>Step 1:</b> SqlClient:
|
||||
|
||||
<ul>
|
||||
* Initial implementation of System.Data.SqlClient is based on
|
||||
the <a href="http://www.postgresql.org/idocs/">PostgreSQL C API</a> which is a
|
||||
client API to the PostgreSQL DBMS. PostgreSQL was chosen so we could quickly
|
||||
create and test the System.Data classes.
|
||||
|
||||
* Once the <a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatasqlclient.asp?frame=true">System.Data.SqlClient</a>
|
||||
code is functional and is usable by other people, we willl move it to
|
||||
Mono.Data.PostgreSQL, and will convert the existing
|
||||
* Implementation of System.Data.SqlClient based on
|
||||
the PostgreSQL C API.
|
||||
|
||||
* Once the System.Data.SqlClient code is functional and
|
||||
is usable by other people, we willl move it to
|
||||
System.Data.PostgreSQL, and will convert the existing
|
||||
System.Data.SqlClient to be just a wrapper around
|
||||
Mono.Data.PostgreSQL.
|
||||
System.Data.PostgreSQL.
|
||||
|
||||
</ul>
|
||||
|
||||
<b>Step 2:</b> <a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemDataOleDb.asp?frame=true">System.Data.OleDb</a> Provider:
|
||||
|
||||
<b>Step 2:</b> OleDBClient:
|
||||
<ul>
|
||||
* <p>On Unix systems: System.Data.OleDb will use the
|
||||
<a href="http://www.gnome-db.org/">LibGDA</a>
|
||||
engine.
|
||||
* On Unix systems: System.Data.OleDb will use LibGDA as its
|
||||
engine.
|
||||
|
||||
<p>LibGDA is a data access engine like ADO/OLE-DB, but for Unix. The
|
||||
GDA in libGDA stands for GNU/GNOME Data Access, but it does not require GNOME.
|
||||
It only requires glib2 and libxml2. LibGDA is used by
|
||||
libgnomedb, GNOME-DB, and gaSQL.
|
||||
|
||||
<p>There is work under way to get libgda working under
|
||||
Windows using Cygwin by the GNOME-DB developers.
|
||||
|
||||
<p>LibGDA has providers for MySQL, PostgreSQL, XML, ODBC,
|
||||
and MDB Tools (MS Access support).
|
||||
LibGDA is the data access engine that is used by
|
||||
Gnome-Db (only libgda, not libgnomedb at all).
|
||||
|
||||
* On Windows systems: System.Data.OleDb will use OLE-DB as
|
||||
its engine. It may have the option of using libgda too.
|
||||
its engine.
|
||||
</ul>
|
||||
|
||||
<b>Step 3:</b> <a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatasqlclient.asp?frame=true">System.Data.SqlClient</a> Provider:
|
||||
<b>Step 3:</b> System.Data.SqlClient Providers:
|
||||
|
||||
<ul>
|
||||
* <p>System.Data.SqlClient will then become a managed
|
||||
provider for Microsoft SQL Server, both on Windows and
|
||||
Linux, to be compatible with applications written
|
||||
for the Microsoft .NET Development Framework.
|
||||
|
||||
<p>Once Step 1 has been completed and the PostgreSQL
|
||||
provider support has been moved to its own place at
|
||||
System.Data.PostgreSQL, we will use
|
||||
<a href="http://www.freetds.org/">FreeTDS</a> as the basis
|
||||
for providing access to Microsoft SQL Server databases.
|
||||
|
||||
<P>FreeTDS is a C API for Unix and Windows that implements
|
||||
the TDS (Tabular Data Stream) protocol used in accessing
|
||||
Microsoft SQL Server and Sybase databases. A .NET Data Provider could be
|
||||
created for Sybase databases as well, but this would be put in Mono.Data.Sybase.
|
||||
* System.Data.SqlClient will then become a generic
|
||||
proxy for binding to other SQL implementations other
|
||||
than PostgreSQL (MySQL on Unix/Windows; MS SQL on
|
||||
Window; Interbase on Unix/Windows). Others are welcomed.
|
||||
</ul>
|
||||
|
||||
<b>Step 4:</b> <a href="http://msdn.microsoft.com/downloads/sample.asp?url=/MSDN-FILES/027/001/668/msdncompositedoc.xml&frame=true">System.Data.Odbc</a> Provider:
|
||||
|
||||
<ul>
|
||||
* We will create a .NET Managaed Provider for ODBC
|
||||
in System.Data.Odbc for those using ODBC.
|
||||
On Unix and Windows, <a href="http://www.unixodbc.org/">unixODBC</a> mabye used.
|
||||
iODBC is an alternative to using unixODBC.
|
||||
|
||||
<p>unixODBC works on Unix and Windows. Well, I have not actually
|
||||
used it on Cygwin, but it does build and install without problems.
|
||||
|
||||
<p>unixODBC has providers for:
|
||||
Oracle, Microsoft SQL Server and Sybase via FreeTDS,
|
||||
MySQL, PostgreSQL, Informix, IBM DB2 (Universal Database),
|
||||
Interbase, miniSQL (mSQL), AdabasD, Empress, YARD SQL, and others.
|
||||
|
||||
</ul>
|
||||
|
||||
<b>Step 5:</b> Other System.Data providers:
|
||||
|
||||
<ul>
|
||||
* <p>The idea in Microsoft .NET System.Data is to have
|
||||
a managed provider for each supported DBMS. System.Data.SqlClient
|
||||
for Microsoft SQL Server.
|
||||
System.Data.OracleClient for Oracle 8i and 9i.
|
||||
|
||||
<p>We will need to have Mono.Data.MySQL, Mono.Data.PostgreSQL,
|
||||
Mono.Data.DB2, and Mono.Data.miniSQL. Others,
|
||||
of course, are welcomed.
|
||||
|
||||
<p>System.Data has been designed so
|
||||
non-database providers can be created too.
|
||||
</ul>
|
||||
|
||||
* Current Status
|
||||
|
||||
<p>We are working on Steps 1, 2, and 5. We have only just begun on
|
||||
steps 2 and 5 though. We still have tons and tons of stuff to do.
|
||||
If you have any ideas, let us know.
|
||||
|
||||
<p>For Step 1, the PostgreSQL is starting to come together - it
|
||||
still needs a lot of work.
|
||||
|
||||
<p>For Step 2, Rodrigo Moya has begun System.Data.OleDb which will use libgda
|
||||
which is an OLE-DB/ADO data access for Unix. The C-Sharp bindings to libgda
|
||||
currently work - meaning they can compile, run, and you can connect to a
|
||||
PostgreSQL database via libgda via the C-Sharp bindings to libgda. He has also
|
||||
added class stubs for System.Data.OleDb to cvs.
|
||||
|
||||
<p>For Step 3, we need someone to start the FreeTDS .NET Data Provider so
|
||||
we can have data access to Microsoft SQL Server and Sybase databases, or either
|
||||
add the support in libgda.
|
||||
|
||||
<p>For Step 4, we need someone to start the unixODBC .NET Data Provider, or add
|
||||
the support in libgda.
|
||||
|
||||
<p>For Step 5, we have just begun creating a Mono.Data .NET Provider - a MySQL
|
||||
.NET Provider that uses the MySQL C Client Library. This provider is
|
||||
found in Mono.Data.MySql. We can currently connect and do a SQL INSERT and insert
|
||||
a row into a MySQL database. However, it currently only works on Cygwin because
|
||||
the MySQL client library libmySQL.dll is different
|
||||
from the library on Linux libmysqlclient.dll. Another problem, mysql thread functions
|
||||
do not load for some reason. Also, the provider only runs if you use "mint" (the Mono
|
||||
runtime interpreter). It does not work on "mono" (the Mono Just-In-Time compiler).
|
||||
The C# Bindings to MySQL are thanks to Brad Meril.
|
||||
|
||||
<p>We are able to do simple CREATE TABLE, DROP TABLE, UPDATE, INSERT, and
|
||||
DELETE SQL commands using the ExecuteNonQuery method in SqlCommand.
|
||||
|
||||
<p>We can execute multiple queries and do a NextResult() in SqlDataReader()
|
||||
to get the next result set.
|
||||
|
||||
<p>We are also able to do simple aggregate functions,
|
||||
ie, count(), sum(), min(), and max()
|
||||
in a simple SELECT SQL query using the ExecuteScalar() now.
|
||||
|
||||
<p>We are also able to retrieve data with a simple SELECT SQL query
|
||||
using ExecuteReader() which returns a SqlDataReader. We are able to
|
||||
use GetSchemaTable() to get the meta data about the table columns.
|
||||
We are able to Read() to get each row from the result set.
|
||||
|
||||
<p>Here is a sample of code that is based on PostgresTest.cs and
|
||||
TestSqlDataReader.cs tests:
|
||||
<pre>
|
||||
|
||||
static void SelectData (IDbConnection cnc) {
|
||||
|
||||
IDbCommand selectCommand = cnc.CreateCommand();
|
||||
IDataReader reader;
|
||||
|
||||
selectCommand.CommandType = CommandType.Text;
|
||||
selectCommand.CommandText =
|
||||
"select * from pg_user;" +
|
||||
"select * from pg_tables;" +
|
||||
"select * from pg_database";
|
||||
|
||||
reader = selectCommand.ExecuteReader ();
|
||||
|
||||
do {
|
||||
// get the DataTable that holds
|
||||
// the schema
|
||||
DataTable dt = rdr.GetSchemaTable();
|
||||
|
||||
if(rdr.RecordsAffected != -1) {
|
||||
// Results for
|
||||
// SQL INSERT, UPDATE, DELETE Commands
|
||||
// have RecordsAffected >= 0
|
||||
Console.WriteLine("Result is from a SQL Command (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected);
|
||||
}
|
||||
else if (dt == null)
|
||||
Console.WriteLine("Result is from a SQL Command not (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected);
|
||||
else {
|
||||
// Results for
|
||||
// SQL not INSERT, UPDATE, nor DELETE
|
||||
// have RecordsAffected = -1
|
||||
Console.WriteLine("Result is from a SQL SELECT Query. Records Affected: " + rdr.RecordsAffected);
|
||||
|
||||
// Results for a SQL Command (CREATE TABLE, SET, etc)
|
||||
// will have a null reference returned from GetSchemaTable()
|
||||
//
|
||||
// Results for a SQL SELECT Query
|
||||
// will have a DataTable returned from GetSchemaTable()
|
||||
|
||||
results++;
|
||||
Console.WriteLine("Result Set " + results + "...");
|
||||
|
||||
// number of columns in the table
|
||||
Console.WriteLine(" Total Columns: " +
|
||||
dt.Columns.Count);
|
||||
|
||||
// display the schema
|
||||
foreach (DataRow schemaRow in dt.Rows) {
|
||||
foreach (DataColumn schemaCol in dt.Columns)
|
||||
Console.WriteLine(schemaCol.ColumnName +
|
||||
" = " +
|
||||
schemaRow[schemaCol]);
|
||||
Console.WriteLine();
|
||||
}
|
||||
|
||||
int nRows = 0;
|
||||
string output, metadataValue, dataValue;
|
||||
// Read and display the rows
|
||||
Console.WriteLine("Gonna do a Read() now...");
|
||||
while(rdr.Read()) {
|
||||
Console.WriteLine(" Row " + nRows + ": ");
|
||||
|
||||
for(c = 0; c < rdr.FieldCount; c++) {
|
||||
// column meta data
|
||||
DataRow dr = dt.Rows[c];
|
||||
metadataValue =
|
||||
" Col " +
|
||||
c + ": " +
|
||||
dr["ColumnName"];
|
||||
|
||||
// column data
|
||||
if(rdr.IsDBNull(c) == true)
|
||||
dataValue = " is NULL";
|
||||
else
|
||||
dataValue =
|
||||
": " +
|
||||
rdr.GetValue(c);
|
||||
|
||||
// display column meta data and data
|
||||
output = metadataValue + dataValue;
|
||||
Console.WriteLine(output);
|
||||
}
|
||||
nRows++;
|
||||
}
|
||||
Console.WriteLine(" Total Rows: " +
|
||||
nRows);
|
||||
}
|
||||
} while(rdr.NextResult());
|
||||
Console.WriteLine("Total Result sets: " + results);
|
||||
|
||||
rdr.Close();
|
||||
}
|
||||
|
||||
</pre>
|
||||
|
||||
<p>We are able to get
|
||||
String data (char, character, text, varchar), Int16 (smallint),
|
||||
Int32 (integer), Int64 (bigint), DateTime (time, date, timestamp),
|
||||
Boolean (boolean), Single (float), and Double (double).
|
||||
More data types will come later. Note, the types that do work still
|
||||
need thorough testing.
|
||||
|
||||
<p>Rows that are returned which contain columns that are NULL are handled now.
|
||||
The SqlDataReader method IsDBNull() needs to be called to determine
|
||||
if a field IS NULL before trying to read data from that field.
|
||||
|
||||
<p>Calling PostgreSQL stored procedures works. It does not work perfectly. It may not
|
||||
even work to specification - yet. If you want to test it yourself, look at
|
||||
TestSqlDataReader.cs or PostgresTest.cs in
|
||||
mcs/class/System.Data/Test.
|
||||
|
||||
<p>Below, I have some sample code you can
|
||||
use to call a PostgreSQL stored procedure named "version". This stored
|
||||
procedure returns a string containing the PostgreSQL server version. Notice
|
||||
the CommandType is StoredProcedure and the method ExecuteScalar() is called.
|
||||
|
||||
<p>ExecuteScalar() is a lightweight method in class SqlCommand that only returns
|
||||
one row and one column as one object - even if there is more than row or column.
|
||||
|
||||
<pre>
|
||||
static string GetDatabaseServerVersion (SqlConnection cnc)
|
||||
{
|
||||
SqlCommand cmd = cnc.CreateCommand ();
|
||||
string data;
|
||||
|
||||
cmd.CommandType = CommandType.StoredProcedure;
|
||||
cmd.CommandText = "version";
|
||||
|
||||
data = (string) cmd.ExecuteScalar ();
|
||||
|
||||
return data;
|
||||
}
|
||||
</pre>
|
||||
|
||||
<p>We have the beginnings of Parameters support PostgreSQL. Only
|
||||
Input Parameters are currently supported. Output, Input/Output,
|
||||
and Return parameters still need to be done.
|
||||
|
||||
<p>A lot of functionality in System.Data is missing, but the
|
||||
infrastructure is starting to come together.
|
||||
|
||||
<p>A lot of Exceptions need to be thrown for various exceptions. However,
|
||||
SqlException, SqlErrorCollection, and SqlError have been partially
|
||||
implemented.
|
||||
|
||||
<p>Tim Coleman and Rodrigo Moya got the beginnings of the
|
||||
SqlDataAdapter/DataSet/DataTable/DataRow to work. Currently,
|
||||
the SqlDataAdapter can Fill() relational data into a DataTable in a DataSet.
|
||||
See the test mcs/class/System.Data/Test/TestSqlDataAdapter.cs to see it in action.
|
||||
Below, I show a snippets from the test:
|
||||
|
||||
<pre>
|
||||
string connectionString;
|
||||
string sqlQuery;
|
||||
SqlDataAdapter adapter;
|
||||
DataSet dataSet = null;
|
||||
|
||||
connectionString =
|
||||
"host=localhost;" +
|
||||
"dbname=test;" +
|
||||
"user=postgres";
|
||||
|
||||
sqlQuery = "select * from pg_tables";
|
||||
|
||||
adapter = new SqlDataAdapter (sqlQuery,
|
||||
connectionString);
|
||||
|
||||
dataSet = new DataSet ();
|
||||
|
||||
adapter.Fill (dataSet);
|
||||
|
||||
if (dataSet != null) {
|
||||
foreach (DataRow row in dataSet.Tables["Table"].Rows)
|
||||
Console.WriteLine("tablename: " + row["tablename"]);
|
||||
}
|
||||
</pre>
|
||||
|
||||
<p>We do need help on the DataSet/DataAdaptor/DataTable/DataRelation/XML
|
||||
functionality so we can integrate with
|
||||
the ASP.NET controls and Windows.Forms controls by allowing the controls to bind
|
||||
to a data source. Gonzalo, Gaurav, Leen, Patrik, Duncan, and others are
|
||||
working very hard on the ASP.NET support. If you want to help,
|
||||
contact <a href="mailto:[email protected]">Gonzalo Paniagua Javier</a>
|
||||
|
||||
<P>Need to add XML support in System.Data. This involves working on
|
||||
the classes: DataSet and XmlDataDocument and the ExecuteXmlReader() in SqlCommand.
|
||||
|
||||
<p>The System.Data.dll gets built with the rest of the class library.
|
||||
To compile the System.Data.dll assembly separately, you need:
|
||||
|
||||
<b>On Unix</b>
|
||||
|
||||
<ul>
|
||||
* update your mono sources. Be sure you have latest mcs.exe
|
||||
and .dll's, since there have been many fixes needed for
|
||||
compilation on Linux.
|
||||
|
||||
* compile System.Data.dll:
|
||||
<pre>
|
||||
cd mcs/class/System.Data<br>
|
||||
mcs --target library -o System.Data.dll @list
|
||||
</pre>
|
||||
</ul>
|
||||
|
||||
<b>On Windows</b>
|
||||
|
||||
<ul>
|
||||
* update your mono sources. Be sure you have latest mcs.exe
|
||||
and .dll's. You can use the same method as Linux,
|
||||
or you can use NAnt.
|
||||
|
||||
* To use NAnt:
|
||||
|
||||
<pre>
|
||||
cd mcs/class/System.Data
|
||||
../../nant/NAnt.exe
|
||||
</pre>
|
||||
|
||||
This will automatically copy the System.Data.dll to Test.
|
||||
If you need to do a clean for the System.Data.dll assembly,<br><br>
|
||||
|
||||
<pre>
|
||||
cd mcs/class/System.Data
|
||||
../../nant/NAnt.exe clean
|
||||
</pre>
|
||||
</ul>
|
||||
|
||||
* Testing
|
||||
|
||||
<p>In order to test System.Data.SqlClient, you will need to have
|
||||
access to a remote PostgreSQL DBMS, or you will have to install
|
||||
one locally. PostgreSQL is the DBMS used for the initial
|
||||
implementation of System.Data.SqlClient.
|
||||
|
||||
<p>Why? Because it is open source, has a client
|
||||
library that is easy to use, PostgreSQL is easy to install on
|
||||
Unix and Windows (using the Cygwin install program), not difficult to setup after
|
||||
installation, and it runs under: Linux,
|
||||
Windows (via cygwin and ipc-daemon), Unix, and
|
||||
others. This allowed us to create the
|
||||
System.Data functionality in Mono much quicker.
|
||||
|
||||
<p>If you plan on using a remote PostgreSQL DBMS Server,
|
||||
than you will need to have the PostgreSQL client software on your
|
||||
local computer that includes libpq.so (pq.dll on Windows).
|
||||
|
||||
<p>The System.Data tests use this connection string to connect
|
||||
to the PostgreSQL database named "test" at host "localhost" as
|
||||
user "postgres".
|
||||
|
||||
<pre>
|
||||
"host=localhost;dbname=test;user=postgres"
|
||||
</pre>
|
||||
|
||||
<p>Installation instructions for PostgreSQL DBMS:
|
||||
|
||||
<b>On Unix</b>
|
||||
|
||||
<ul>
|
||||
* Read the PostgreSQL Installation Instructions
|
||||
at \usr\doc\postgresql-x.x.x\html\installation.html
|
||||
|
||||
* Depending on your Unix system,
|
||||
PostgreSQL maybe already installed, a database user 'postgres' created,
|
||||
a linux user 'postgres' created and initdb ran. Or maybe not.
|
||||
|
||||
<pre>
|
||||
su
|
||||
adduser postgres
|
||||
mkdir /usr/local/pgsql/data
|
||||
chown postgres /usr/local/pgsql/data
|
||||
su - postgres
|
||||
initdb -D /usr/local/pgsql/data
|
||||
postmaster -i -D /usr/local/pgsql/data
|
||||
createdb test
|
||||
psql test
|
||||
</pre>
|
||||
|
||||
* Make sure you have a database user named postgres. It is best to install
|
||||
the PostgreSQL DBMS under linux user postgres. When you run the postmaster,
|
||||
run it under the user postgres as well. If this was not done, then you
|
||||
will need to create a user named postgres for the System.Data tests.
|
||||
|
||||
* If you already installed PostgeSQL and you do not have a database
|
||||
user named postgres, then you can create user postgres using psql:
|
||||
|
||||
<pre>
|
||||
psql test
|
||||
create user postgres with password 'fun2db';
|
||||
</pre>
|
||||
|
||||
* The postmaster must be run with -i option.
|
||||
|
||||
* In the /usr/local/pgsql/data/pg_hba.conf file, you need
|
||||
to have the AUTH_TYPE set to md5. You can read more on this at
|
||||
/usr/doc/postgresql-7.2.1/html/client-authentication.html
|
||||
or wherever your
|
||||
PostgreSQL html docs are located. See the 2nd line below,
|
||||
host 127.0.0.1 has an AUTH_TYPE md5 in pg_hba.conf.
|
||||
|
||||
<pre>
|
||||
# TYPE DATABASE IP_ADDRESS MASK AUTH_TYPE
|
||||
|
||||
local all trust
|
||||
host all 127.0.0.1 255.255.255.255 md5
|
||||
</pre>
|
||||
|
||||
* If you can not find your PostgreSQL documentation locally or you
|
||||
did not install it, then you
|
||||
can get it <a href="http://www.postgresql.org/idocs/">here</a>.
|
||||
|
||||
</ul>
|
||||
|
||||
<b>On Windows</b>
|
||||
|
||||
<ul>
|
||||
* Use the <a href="http://www.cygwin.com/">Cygwin</a> installer to
|
||||
install the PostgreSQL DBMS. It is
|
||||
found in the database category.
|
||||
|
||||
* <p>Read the file postgres-x.x.README at /usr/doc/Cygwin and read
|
||||
the requirements to install PostgreSQL. Those requirements
|
||||
are included with cygwin except cygipc. A default installtion
|
||||
of cygwin does not install everything you will need, so on the
|
||||
safe side, just include everything when installing cygwin.
|
||||
|
||||
* <p>The -x.x in postgres-x.x is the version of your PostgreSQL DBMS.
|
||||
|
||||
* <p>Once Cygwin has installed the PostgreSQL DBMS on your computer,
|
||||
read the file FAQ_MSWIN which is available
|
||||
in /usr/doc/postgres-x.x
|
||||
|
||||
* <p>Important notes from this file are:
|
||||
|
||||
<ul>
|
||||
<p><b>2.</b> - Install the latest <a href="http://www.neuro.gatech.edu/users/cwilson/cygutils/OBSOLETE/V1.1/cygipc/index.html">CygIPC</a> package.
|
||||
|
||||
<p>The cygipc package contains the ipc-daemon you will need
|
||||
to run before you can
|
||||
run the PostgreSQL DBMS Server daemon (postmaster) or run
|
||||
initdb which initializes the PostgreSQL database.
|
||||
|
||||
<p><b>3.</b> The Cygwin bin directory has to be placed in
|
||||
the path before the Windows program directories,
|
||||
for example, C:\cygwin\bin
|
||||
|
||||
<p><b>My own note.</b> In the Windows control panel, I set
|
||||
the environment variables PATH to my cygwin /usr/local/bin,
|
||||
/usr/bin, and /bin. I also set my LD_LIBRARY_PATH to
|
||||
/usr/local/lib and /usr/lib. For example:
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
PATH=c:\cygwin\usr\local\bin;c:\cygwin\usr\bin;c:\cygwin\bin;
|
||||
LD_LIBRARY_PATH=c:\cygwin\usr\local\lib;c:\cygwin\usr\lib;
|
||||
</pre>
|
||||
|
||||
<p><b>4.</b> Start the ipc-daemon that came with the cygipc
|
||||
package. There
|
||||
are two ways to do this: run it from the command line as:
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
ipc-daemon &
|
||||
</pre>
|
||||
<p>or you can set it up as a Windows service. See the
|
||||
file cygrunsrv.README at /usr/doc/Cygwin on how to do this
|
||||
for ipc-daemon and postmaster. Note the
|
||||
troubleshooting section at the end of
|
||||
the cygrunsrv.README file.
|
||||
|
||||
<p>To install ipc-daemon as a service,
|
||||
you just have to run
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
ipc-daemon --install-as-service' (--remove-as-service)
|
||||
</pre>
|
||||
|
||||
<p>and then run
|
||||
|
||||
<pre>
|
||||
net start ipc-daemon
|
||||
</pre>
|
||||
</ul>
|
||||
|
||||
<p>Read the installation.html file
|
||||
at /usr/doc/postgresql-x.x/html/installation.html
|
||||
|
||||
<p>You will see in this file that you will need to
|
||||
run the following commands:
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
mkdir /usr/local/pgsql/data
|
||||
initdb -D /usr/local/pgsql/data
|
||||
postmaster -D /usr/local/pgsql/data
|
||||
createdb test
|
||||
psql test
|
||||
</pre>
|
||||
|
||||
<p>When you need to connect to the database,
|
||||
you will need ipc-daemon and postmaster running. Start ipc-daemon
|
||||
before any of the command above. If you restart your computer, you
|
||||
need to start ipc-daemon and postmaster either manually or as a
|
||||
service.
|
||||
|
||||
<p>psql is a command-line PostgreSQL client tool to
|
||||
enter and run SQL commands and queries.
|
||||
|
||||
<p>If there is no database user named postgres, create a user named
|
||||
postgres with the following SQL command in the client tool psql:
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
psql test
|
||||
create user postgres with password 'fun2db';
|
||||
</pre>
|
||||
<p>The only reason I say this is so you can easily use the System.Data tests
|
||||
without having to change the database, userid, etc.
|
||||
</ul>
|
||||
|
||||
<p>In the path mcs/class/System.Data/Test
|
||||
there is a PostgreSQL test program named
|
||||
PostgreTest.cs. Thanks goes to Gonzalo for creating the original
|
||||
PostgreSQL test.
|
||||
|
||||
<p>To use it to test System.Data, you
|
||||
modify the file to your PostgreSQL database
|
||||
connection requirements:
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<li><b>dbname</b> database, ie., test</li>
|
||||
<li><b>host</b> hostname of the PostgreSQL DBMS Server to connect to, ie., localhost</li>
|
||||
<li><b>user</b> username, ie., someuser</li>
|
||||
<li><b>password</b> password, ie., mypass1234</li>
|
||||
</ul>
|
||||
|
||||
<p>The connection string is in OLE-DB connection string format. Internally,
|
||||
SqlConnection converts this to the PostgreSQL connection string format.
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
OLE-DB: "host=localhost;dbname=test;user=joe;password=smoe"
|
||||
PostgreSQL: "host=localhost dbname=test user=joe password=smoe"
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
Note that OLE-DB includes the semicolons while PostgreSQL's connection
|
||||
string does not.
|
||||
|
||||
<p>
|
||||
To compile the PostgresTest.cs program, do:
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
mcs PostgresTest.cs -r System.Data.dll
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
To run using mint, do:
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
mint PostgresTest.exe
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
To run using mono, do:
|
||||
<pre>
|
||||
mono PostgresTest.exe
|
||||
</pre>
|
||||
|
||||
<p>Below, I show how the output from PostgresTest. I have omitted a lot
|
||||
of the meta data for the columns except two columns. The classes
|
||||
used were from System.Data.SqlClient and were used to connect to a
|
||||
PostgreSQL database and retrieve data.
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
|
||||
danmorg@DANPC ~/mono/mcs/class/System.Data/Test
|
||||
$ mcs PostgresTest.cs -r System.Data.dll
|
||||
|
||||
danmorg@DANPC ~/mono/mcs/class/System.Data/Test
|
||||
$ mono PostgresTest.exe
|
||||
Postgres provider specific tests...
|
||||
|
||||
Drop table:
|
||||
Error (don't worry about this one)SqlError:PGRES_FATAL_ERROR ERROR: table "mono
|
||||
_postgres_test" does not exist
|
||||
<Stack Trace>
|
||||
|
||||
Create table with all supported types:
|
||||
OK
|
||||
Insert values for all known types:
|
||||
OK
|
||||
Update values:
|
||||
OK
|
||||
Insert values for all known types:
|
||||
OK
|
||||
Aggregate: count(*)
|
||||
Agg Result: 2
|
||||
Aggregate: min(text_value)
|
||||
Agg Result: This is a text
|
||||
Aggregate: max(int4_value)
|
||||
Agg Result: 1048000
|
||||
Aggregate: sum(int4_value)
|
||||
Agg Result: 1048003
|
||||
Select values from the database:
|
||||
Result is from a SELECT SQL Query. Records Affected: -1
|
||||
Result Set 1...
|
||||
Total Columns: 28
|
||||
ColumnName = boolean_value
|
||||
ColumnOrdinal = 1
|
||||
ColumnSize = 1
|
||||
NumericPrecision = 0
|
||||
NumericScale = 0
|
||||
IsUnique = False
|
||||
IsKey =
|
||||
BaseCatalogName =
|
||||
BaseColumnName = boolean_value
|
||||
BaseSchemaName =
|
||||
BaseTableName =
|
||||
DataType = System.Boolean
|
||||
AllowDBNull = False
|
||||
ProviderType = 16
|
||||
IsAliased = False
|
||||
IsExpression = False
|
||||
IsIdentity = False
|
||||
IsAutoIncrement = False
|
||||
IsRowVersion = False
|
||||
IsHidden = False
|
||||
IsLong = False
|
||||
IsReadOnly = False
|
||||
|
||||
...
|
||||
|
||||
ColumnName = null_timestamp_value
|
||||
ColumnOrdinal = 28
|
||||
ColumnSize = 8
|
||||
NumericPrecision = 0
|
||||
NumericScale = 0
|
||||
IsUnique = False
|
||||
IsKey =
|
||||
BaseCatalogName =
|
||||
BaseColumnName = null_timestamp_value
|
||||
BaseSchemaName =
|
||||
BaseTableName =
|
||||
DataType = System.DateTime
|
||||
AllowDBNull = False
|
||||
ProviderType = 1184
|
||||
IsAliased = False
|
||||
IsExpression = False
|
||||
IsIdentity = False
|
||||
IsAutoIncrement = False
|
||||
IsRowVersion = False
|
||||
IsHidden = False
|
||||
IsLong = False
|
||||
IsReadOnly = False
|
||||
|
||||
Gonna do a Read() now...
|
||||
Row 0:
|
||||
Col 0: boolean_value: False
|
||||
Col 1: int2_value: 5
|
||||
Col 2: int4_value: 3
|
||||
Col 3: bigint_value: 9
|
||||
Col 4: float_value: 3.141590
|
||||
Col 5: double_value: 3.14159
|
||||
Col 6: numeric_value: 123456789012.345
|
||||
Col 7: char_value: Mono.Data!
|
||||
Col 8: varchar_value: It was not me!
|
||||
Col 9: text_value: We got data!
|
||||
Col 10: point_value: (1,0)
|
||||
Col 11: time_value: 01/01/1 21:13:14
|
||||
Col 12: date_value: 02/29/2000 00:00:00
|
||||
Col 13: timestamp_value: 02/29/2004 14:00:11
|
||||
Col 14: null_boolean_value is NULL
|
||||
Col 15: null_int2_value is NULL
|
||||
Col 16: null_int4_value is NULL
|
||||
Col 17: null_bigint_value is NULL
|
||||
Col 18: null_float_value is NULL
|
||||
Col 19: null_double_value is NULL
|
||||
Col 20: null_numeric_value is NULL
|
||||
Col 21: null_char_value is NULL
|
||||
Col 22: null_varchar_value is NULL
|
||||
Col 23: null_text_value is NULL
|
||||
Col 24: null_point_value is NULL
|
||||
Col 25: null_time_value is NULL
|
||||
Col 26: null_date_value is NULL
|
||||
Col 27: null_timestamp_value is NULL
|
||||
Row 1:
|
||||
Col 0: boolean_value: True
|
||||
Col 1: int2_value: -22
|
||||
Col 2: int4_value: 1048000
|
||||
Col 3: bigint_value: 123456789012345
|
||||
Col 4: float_value: 3.141590
|
||||
Col 5: double_value: 3.14159
|
||||
Col 6: numeric_value: 123456789012.345
|
||||
Col 7: char_value: This is a char
|
||||
Col 8: varchar_value: This is a varchar
|
||||
Col 9: text_value: This is a text
|
||||
Col 10: point_value: (1,0)
|
||||
Col 11: time_value: 01/01/1 21:13:14
|
||||
Col 12: date_value: 02/29/2000 00:00:00
|
||||
Col 13: timestamp_value: 02/29/2004 14:00:11
|
||||
Col 14: null_boolean_value is NULL
|
||||
Col 15: null_int2_value is NULL
|
||||
Col 16: null_int4_value is NULL
|
||||
Col 17: null_bigint_value is NULL
|
||||
Col 18: null_float_value is NULL
|
||||
Col 19: null_double_value is NULL
|
||||
Col 20: null_numeric_value is NULL
|
||||
Col 21: null_char_value is NULL
|
||||
Col 22: null_varchar_value is NULL
|
||||
Col 23: null_text_value is NULL
|
||||
Col 24: null_point_value is NULL
|
||||
Col 25: null_time_value is NULL
|
||||
Col 26: null_date_value is NULL
|
||||
Col 27: null_timestamp_value is NULL
|
||||
Total Rows Retrieved: 2
|
||||
Total Result sets: 1
|
||||
Call ExecuteReader with a SQL Command. (Not INSERT,UPDATE,DELETE
|
||||
).
|
||||
Result is from a SQL Command not (INSERT,UPDATE,DELETE). Records Affected: -1
|
||||
Total Result sets: 0
|
||||
Call ExecuteReader with a SQL Command. (Is INSERT,UPDATE,DELETE)
|
||||
.
|
||||
Result is from a SQL Command (INSERT,UPDATE,DELETE). Records Affected: 1
|
||||
Total Result sets: 0
|
||||
Calling stored procedure version()
|
||||
Result: PostgreSQL 7.2.1 on i686-pc-cygwin, compiled by GCC 2.95.3-5
|
||||
Database Server Version: PostgreSQL 7.2.1 on i686-pc-cygwin, compiled by GCC 2.9
|
||||
5.3-5
|
||||
Clean up...
|
||||
Drop table...
|
||||
OK
|
||||
RESULT: 0
|
||||
|
||||
</pre>
|
||||
|
||||
+4
-115
@@ -1,122 +1,11 @@
|
||||
* ASP.NET
|
||||
|
||||
ASP.NET support is divided in two pieces:
|
||||
<ul>
|
||||
* Web Forms (Web Applications infrastructure).
|
||||
|
||||
* Web Services (the SOAP-based rpc system).
|
||||
</ul>
|
||||
|
||||
There is work underway for both systems. The Web Forms
|
||||
support is more advanced at this point, and various ".aspx"
|
||||
programs can be run using the Mono runtime and the XSP page
|
||||
parser.
|
||||
|
||||
Tim started work on the Web Services early this week.
|
||||
Although we have a SoapFormatter as part of the remoting
|
||||
infrastructure already (contributed by Jesus), most people
|
||||
will be using the ASP.NET Web-services support. Work for the
|
||||
supporting class libraries just started recently.
|
||||
|
||||
* Web Forms: The pieces
|
||||
|
||||
There are a couple of components to the puzzle:
|
||||
|
||||
<ul>
|
||||
* .aspx page parser (converts .aspx to C# code).
|
||||
|
||||
* System.Web.HttpRuntime support.
|
||||
|
||||
* Web controls (System.Web.UI.HtmlControls and
|
||||
System.Web.UI.WebControls).
|
||||
|
||||
* Underlying infrastructure for the controls (System.Web.UI).
|
||||
|
||||
* HttpRuntime.ProcessRequest is the core of the ASP.NET
|
||||
implementation.
|
||||
</ul>
|
||||
|
||||
|
||||
Gonzalo has been working on an ASP.NET parser that takes .aspx
|
||||
files and generated the code required to run them (the code lives in
|
||||
module `xsp' along with a little web server for testing).
|
||||
|
||||
Most of the runtime support was mostly written by Patrik Torstensson
|
||||
(now at Intel). This was interesting, because in order to implement
|
||||
some of its features, Patrik had to go into the runtime/JIT engine and
|
||||
he spent a few weeks doing work there.
|
||||
|
||||
The classes for running ASP.NET are being actively written.
|
||||
Gaurav, Leen and Patrik worked in the core of the classes
|
||||
Gaurav, Leen and Patrik have been building the classes
|
||||
required to run ASP.NET web application as well as a small
|
||||
embeddable web server.
|
||||
|
||||
Duncan got our System.Web assembly to compile.
|
||||
|
||||
** HttpRuntime
|
||||
|
||||
Patrik has authored most of the HttpRuntime support (both on
|
||||
the System.Web and on the foundation) but it is still not
|
||||
ready to run.
|
||||
|
||||
** XSP
|
||||
|
||||
Currently XSP provides the .aspx compiler to C#. It would be
|
||||
interesting to see if it makes sense to extend the ASP.NET
|
||||
syntax to make it simpler to develop applications.
|
||||
|
||||
Gonzalo is in charge of the compiler.
|
||||
|
||||
** Controls
|
||||
|
||||
A lot of work has been put in the various classes that
|
||||
implement the controls (UI.HtmlControls and UI.WebControls),
|
||||
but they have been coded mostly in the dark, and without being
|
||||
able to test them in real life: Gaurav and Leen worked very
|
||||
hard on this namespace, but needs to be finished.
|
||||
|
||||
We can now render all HtmlControls and some WebControls. Work is
|
||||
ongoing to make all WebControls render HTML.
|
||||
|
||||
** Extending ASP.NET
|
||||
|
||||
Currently you have to reference in your ASP.NET the control
|
||||
and all of its properties, which works fine if you have a GUI
|
||||
designer, but is harder for people used to develop using text
|
||||
editors.
|
||||
|
||||
Since we have a parser, we could extend this parser to allow
|
||||
people to still use ASP.NET controls, using a simpler syntax.
|
||||
For example people doing blogs and editing their templates
|
||||
over the web probably do not want to use direct ASP.NET but a
|
||||
wrapper around it.
|
||||
|
||||
** Roadmap
|
||||
|
||||
1. The Parser.
|
||||
|
||||
2. Get the parser to generate output compatible with ASP.NET.
|
||||
|
||||
3. Run the sample output with the real Microsoft runtime
|
||||
but using our generated page.
|
||||
|
||||
4. Run the sample with our classes with the .NET runtime.
|
||||
<b>We are here</b>.
|
||||
|
||||
5. Finish HttpRuntime.
|
||||
|
||||
6. Running our sample code with our classes with our runtime.
|
||||
|
||||
** How to Help
|
||||
|
||||
Currently we are testing and fixing HtmlControls, WebControls and
|
||||
validators.
|
||||
|
||||
In the CVS module XSP you can find the aspx to C# page parser,
|
||||
a little web server used for testing and a directory containing
|
||||
sample aspx pages.
|
||||
|
||||
You have some documentation under doc directory and in the README
|
||||
file of each directory. They explain how to test our System.Web.
|
||||
Testing is really easy!
|
||||
Currently ASP.NET does not work, but work is underway. If you
|
||||
are interested in helping the effort please contact the
|
||||
mono-list mailing list.
|
||||
|
||||
+1
-7
@@ -20,11 +20,6 @@
|
||||
|
||||
You can see what needs to be done in the class libraries <a href="class-status.html">here</a>
|
||||
|
||||
* IRC Channel
|
||||
|
||||
Many developers get together on the <b>#mono</b> irc channel
|
||||
on the <b>irc.gnome.org</b> server.
|
||||
|
||||
** To start contributing
|
||||
|
||||
As a programmer, you can contribute in three different scenarios to Mono:
|
||||
@@ -66,8 +61,7 @@
|
||||
world that only has a test suite.
|
||||
|
||||
To get started writing tests see the <a href="testing.html">Test Suite</a>
|
||||
section. <a href="mono-contribution-howto.html">Here</a> there is a good All-In-One introduction to the art of writing tests.
|
||||
|
||||
section.
|
||||
|
||||
*** Contributing to the runtime engine
|
||||
|
||||
|
||||
+24
-53
@@ -13,7 +13,7 @@
|
||||
In order to make mcs and the class libraries you will need a computer
|
||||
running Windows with the <strong>GNU make tools</strong> from the
|
||||
<strong>Cygwin</strong> environment, <strong>Microsoft's .NET Framework
|
||||
SDK</strong>, <strong>GLIB 2.0</strong> and
|
||||
SDK</strong>, <strong>GLIB 1.3</strong> and
|
||||
<strong>pkg-config</strong>.
|
||||
|
||||
When installing Cygwin, don't forget to include
|
||||
@@ -27,34 +27,38 @@
|
||||
Stay up to date on the Mono team's development using the
|
||||
<a href="http://lists.ximian.com/mailman/listinfo/mono-cvs-list">
|
||||
mono-cvs-list</a> mailing list. The CVS source code can also
|
||||
be browsed <a href="http://cvs.hispalinux.es/cgi-bin/cvsweb/?cvsroot=Mono#dirlist">here</a>
|
||||
be browsed <a href="http://cvs.hispalinux.es/cgi-bin/cvsweb/mcs/mcs/cfold.cs?cvsroot=Mono">here</a>
|
||||
|
||||
<a name="jun-7">
|
||||
<b>Mono 0.12</b>
|
||||
<a name="mar-27">
|
||||
<b>Mono 0.10</b>
|
||||
|
||||
New packaged versions of the Mono C# compiler and Mono runtime
|
||||
are now available. The latest version is 0.12.
|
||||
are now available. The latest version is 0.10.
|
||||
|
||||
<ul>
|
||||
* <a href="archive/mono-0.12">Mono 0.12 release notes</a>
|
||||
* <a href="archive/mono-0.10">Mono 0.10 release notes</a>
|
||||
|
||||
* <a href="archive/mcs-0.12.tar.gz">mcs-0.12.tar.gz</a>
|
||||
Mono C# compiler with class library source code.
|
||||
|
||||
* <a href="archive/mono-0.12.tar.gz">mono-0.12.tar.gz</a>
|
||||
Mono runtime.
|
||||
* <a href="archive/mcs-0.10.tar.gz">mcs-0.10.tar.gz</a>
|
||||
Mono C# compiler
|
||||
* <a href="archive/mono-0.10.tar.gz">mono-0.10.tar.gz</a>
|
||||
Mono runtime
|
||||
</ul>
|
||||
|
||||
<a name="feb-22">
|
||||
<b>Mono 0.9</b>
|
||||
|
||||
* Snapshots
|
||||
|
||||
Volunteers package up daily the sources:
|
||||
New packaged versions of the Mono C# compiler and Mono runtime
|
||||
are now available. The latest version is 0.9.
|
||||
|
||||
<ul>
|
||||
* <a href="http://www.atoker.com/mono">Debian Linux</a>
|
||||
* <a href="http://mono.baselabs.org/index.php/software">Red Hat Linux</a>
|
||||
* <a href="http://www.superin.formativ.net/mono/mono.htm">Windows</a> (works without cygwin!)
|
||||
</ul>
|
||||
* <a href="archive/mono-0.9">Mono 0.9 release notes</a>
|
||||
|
||||
* <a href="archive/mcs-0.9.tar.gz">mcs-0.9.tar.gz</a>
|
||||
Mono C# compiler
|
||||
* <a href="archive/mono-0.9.tar.gz">mono-0.9.tar.gz</a>
|
||||
Mono runtime
|
||||
</ul>
|
||||
|
||||
<a name="snapshots">
|
||||
For up to date sources, it is recommended that you use the Mono
|
||||
source code from either the
|
||||
@@ -262,42 +266,9 @@ make install</strong>
|
||||
|
||||
<a name="oldreleases">
|
||||
|
||||
*** Old releases.
|
||||
*** Very old releases.
|
||||
|
||||
<ul>
|
||||
|
||||
<ul>
|
||||
<a name="apr-24">
|
||||
<b>Mono 0.11; April 24, 2002</b>
|
||||
* <a href="archive/mono-0.11">Mono 0.11 release notes</a>
|
||||
|
||||
* <a href="archive/mcs-0.11.tar.gz">mcs-0.11.tar.gz</a>
|
||||
Mono C# compiler
|
||||
* <a href="archive/mono-0.11.tar.gz">mono-0.11.tar.gz</a>
|
||||
Mono runtime
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<a name="mar-27">
|
||||
<b>Mono 0.10; March 27, 2002</b>
|
||||
* <a href="archive/mono-0.10">Mono 0.10 release notes</a>
|
||||
* <a href="archive/mcs-0.10.tar.gz">mcs-0.10.tar.gz</a>
|
||||
Mono C# compiler
|
||||
* <a href="archive/mono-0.10.tar.gz">mono-0.10.tar.gz</a>
|
||||
Mono runtime
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<a name="feb-22">
|
||||
<b>Mono 0.9; February 22, 2002</b>
|
||||
* <a href="archive/mono-0.9">Mono 0.9 release notes</a>
|
||||
|
||||
* <a href="archive/mcs-0.9.tar.gz">mcs-0.9.tar.gz</a>
|
||||
Mono C# compiler
|
||||
* <a href="archive/mono-0.9.tar.gz">mono-0.9.tar.gz</a>
|
||||
Mono runtime
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<a name="feb-11">
|
||||
<b>February 11, 2002</b>
|
||||
* <a href="archive/mcs-0.8.tar.gz">mcs-0.8.tar.gz</a>
|
||||
|
||||
@@ -2,11 +2,9 @@
|
||||
<a href="#ximian">The Ximian Role in the Mono project</a><br>
|
||||
<a href="#gnome">Mono and GNOME</a><br>
|
||||
<a href="#gui">Building GUI applications with Mono</a><br>
|
||||
<a href="#winforms">Mono and WinForms</a><br>
|
||||
<a href="#msft">Mono and Microsoft</a><br>
|
||||
<a href="#pnpproject">Mono and the Portable.NET Project</a><br>
|
||||
<a href="#webservices">Web Services</a><br>
|
||||
<a href="#asp">Mono and ASP.NET</a><br>
|
||||
<a href="#devel">Development Tools and Issues</a><br>
|
||||
<a href="#java">Mono and Java</a><br>
|
||||
<a href="#extending">Extending Mono</a><br>
|
||||
@@ -18,9 +16,6 @@
|
||||
<a href="#patents">Patents</a><br>
|
||||
<a href="#etc">Miscellaneous Questions</a><br>
|
||||
|
||||
A <a
|
||||
href="http://www.es.gnome.org/documentacion/articulos/MONO-PUF/MONO-PUF/">spanish
|
||||
translation</a> is also available
|
||||
|
||||
<a name="basics"></a>
|
||||
** Basics
|
||||
@@ -28,9 +23,9 @@ translation</a> is also available
|
||||
Q: What is Mono exactly?
|
||||
|
||||
A: The Mono Project is an open development initiative sponsored by
|
||||
Ximian that is working to develop an open source, Unix
|
||||
Ximian that is working to develop an open source, Linux-based
|
||||
version of the Microsoft .NET development platform. Its objective
|
||||
is to enable Unix developers to build and
|
||||
is to enable Linux developers to build and
|
||||
deploy cross-platform .NET Applications. The project will
|
||||
implement various technologies developed by Microsoft that have now
|
||||
been submitted to the ECMA for standardization.
|
||||
@@ -108,26 +103,19 @@ Q: Is Mono usable?
|
||||
A: The JIT engine is usable on Intel x86 machines. An interpreter
|
||||
can be used on other non-Intel x86 machines.
|
||||
|
||||
The class libraries are mature enough to run some real applications
|
||||
(the compiler for instance, and every day more and more applications
|
||||
are natively developed with Mono).
|
||||
The class libraries are not yet mature enough to run real applications,
|
||||
but if you are interested in trying out Mono, you can definetly start
|
||||
testing things out as many programs run.
|
||||
|
||||
The C# compiler has made significant progress, it can even compile
|
||||
itself now, but it can not yet be ran with our class libraries as
|
||||
they are missing some features.
|
||||
|
||||
Q: When will you ship it?
|
||||
|
||||
A: Different parts of Mono will achieve usability at different stages,
|
||||
once we are comfortable with the compiler, we will release "Mono Core",
|
||||
which contains everything needed to develop applications with the base
|
||||
class libraries. This should be available at some point during 2002.
|
||||
|
||||
Other higher level class libraries (ASP.NET, ADO.NET, Windows.Forms) will
|
||||
be released when they become stable.
|
||||
|
||||
Q: What major components will you include in Mono?
|
||||
|
||||
A: Hopefully everything that Microsoft ships on their Framework
|
||||
(ADO.NET, ASP.NET, Windows.Forms), and
|
||||
we encourage third party developers to create reusable components that
|
||||
work on both Mono and Windows.
|
||||
A: It is premature to target a shipdate for the code, but we
|
||||
anticipate that it will be available some time in the middle of
|
||||
2002.
|
||||
|
||||
Q: How can I contribute?
|
||||
|
||||
@@ -144,10 +132,6 @@ A: We are interested in providing the best tools for programmers to
|
||||
Project white paper</a>.
|
||||
the project.
|
||||
|
||||
Q: Miguel said once that Mono was being implemented in COBOL. Is that true?.
|
||||
|
||||
A: No. It was a joke.
|
||||
|
||||
|
||||
<a name="ximian"></a>
|
||||
|
||||
@@ -181,13 +165,6 @@ Q: Will Ximian offer Mono commercially?
|
||||
A: When Mono is ready to be shipped Ximian will offer a commercial
|
||||
support and services for Mono.
|
||||
|
||||
Q: Does Ximian provide consulting services around Mono?
|
||||
|
||||
A: Yes, Ximian does provide consulting services around Mono to
|
||||
make it suitable to your needs. Porting the runtime engine,
|
||||
customizing it, working on specific classes or tuning the code
|
||||
for your particular needs.
|
||||
|
||||
Q: Will you wait until Mono is finished?
|
||||
|
||||
A: Mono will ship on various stages as they mature. Some people
|
||||
@@ -262,64 +239,6 @@ A: As long as your applications are 100% .NET and do not make use
|
||||
of P/Invoke to call Win32 functions, your smart client applications
|
||||
will run on Mono platforms.
|
||||
|
||||
Q: Where can I learn mora about Gtk#?
|
||||
|
||||
A: The following <a href="http://gtk-sharp.sourceforge.net>link</a> sends you to the page of the project.
|
||||
|
||||
Q: What can I do with Gtk#?.
|
||||
|
||||
A: Gtk# is becoming very usable and you can create applications and
|
||||
applets like those you see in a GNOME desktop environment. It's
|
||||
easy to install so it's worth a try.
|
||||
|
||||
Q: How can I compile my HelloWorld.cs which uses Gtk#?.
|
||||
|
||||
A: Try: mcs --unsafe -o HelloWorld.exe -r glib-sharp -r pango-sharp -r
|
||||
atk-sharp -r gdk-sharp -r gtk-sharp -r gdk-imaging-sharp
|
||||
HelloWorld.cs
|
||||
|
||||
<a name="winforms"></a>
|
||||
** Mono and WinForms
|
||||
|
||||
Q: Can you tell me why aren't you implementing WinForms?.
|
||||
|
||||
A: (This is based in an original mail to mono-list written by Miguel de
|
||||
Icaza. You should read it for completion, but the core part is here).
|
||||
|
||||
First, Windows.Forms is packed with quirks and is not that great of a
|
||||
toolkit in the first place. Up to the point of the unconfirmed rumor
|
||||
that Microsoft is working on a replacement for it.
|
||||
|
||||
Once the runtime is done, we will very likely start contributing to
|
||||
the Gtk# project ourselves, and we will likely start doing feasibility
|
||||
work on getting Mono used by Gnome developers: full gnome apps and
|
||||
extending existing applications.
|
||||
|
||||
Those interested in hacking on Windows.Forms are welcome to do so,
|
||||
but Ximian will not likely look at it in the near future; if there is
|
||||
enough demand, or I can be convinced that Windows.Forms is useful for
|
||||
something Ximian might re-evaluate our resource allocation for this
|
||||
task.
|
||||
|
||||
By doing native ports, we could use the same API on all those systems.
|
||||
Also, Gtk is mature enough, we know this because we have built an entire
|
||||
desktop (and all sorts of very window system-specific hacks), and we
|
||||
have built a bunch of productivity applications with it.
|
||||
|
||||
Q: What about VCL?.
|
||||
|
||||
Someone mentioned VCL. The only problem with the VCL is that it can
|
||||
only be used for GPL applications (or I guess you could license it from
|
||||
Borland for your app), and would have to be ported from Delphi to C#
|
||||
(or someone would have to write a CIL compiler for it).
|
||||
|
||||
Q: What about doing something like the eclipse project (www.eclipse.org)?
|
||||
|
||||
A: The Eclipse toolkit is not a general purpose toolkit. It will require a
|
||||
lot of work before it is such a thing. It is a toolkit used to
|
||||
implement a development environment.
|
||||
|
||||
|
||||
<a name="msft"></a>
|
||||
** Mono and Microsoft
|
||||
|
||||
@@ -424,48 +343,8 @@ Q: What are the differences between Mono and Portable.NET?
|
||||
|
||||
A: Most of Mono is being written using C#, with only
|
||||
a few parts written in C (The JIT engine, the runtime, the
|
||||
interfaces to the garbage collection system).
|
||||
|
||||
It is easier to describe what is unique about Mono:
|
||||
<ul>
|
||||
<li> A self-hosting C# compiler written in C#, which is clean, easy
|
||||
to maintain.
|
||||
|
||||
<li> A multi-platform runtime engine: both a JIT engine and an
|
||||
interpreter exist. The JIT engine runs currently on x86
|
||||
systems, while the interpreter works on Sparc, StrongARM and
|
||||
PowerPC systems.
|
||||
|
||||
<li> Supports Linux, Windows and Solaris at this point.
|
||||
|
||||
<li> The JIT engine is written using a portable instruction
|
||||
selector which not only generates good code (we are told
|
||||
that we are faster than Rotor, but it is hard to tell) but
|
||||
is also the foundation to retarget the JIT engine to other
|
||||
systems.
|
||||
|
||||
The system employed is described in various compiler
|
||||
books and it is very similar to what is described in the
|
||||
book that covers LCC, the Ansi C retargetable C compiler.
|
||||
|
||||
<li> The JIT engine supports inlining, constant folding and propagation,
|
||||
|
||||
<li> Full support for remoting in the runtime, but the class
|
||||
libraries are still behind.
|
||||
|
||||
<li> The C# compiler, the JIT engine and the class libraries are
|
||||
mature enough that the whole system is self-hosting, ie, that
|
||||
it can be fully developed with itself at this point.
|
||||
|
||||
<li> We are not yet done, and there is a lot of work left to be
|
||||
done
|
||||
|
||||
<li> We have a great community of developers, without which Mono
|
||||
would not be possible.
|
||||
|
||||
<li> We will provide an ahead of time compilation mode in the
|
||||
future.
|
||||
</ul>
|
||||
interfaces to the garbage collection system). The Portable.NET
|
||||
Project is using C for development.
|
||||
|
||||
<a name="webservices"></a>
|
||||
** Web Services
|
||||
@@ -556,62 +435,6 @@ A: The CIL is better suited to be JITed than JVM byte codes, but you
|
||||
can interpret them as trivially as you can interpret JVM byte
|
||||
codes.
|
||||
|
||||
Q: Isn't it a little bit confusing to have the name of "XSP" (the same
|
||||
as in the Apache Project) for the ASP.NET support in Mono?.
|
||||
|
||||
A: In Mono, xsp is just the name of the C# code generator for ASP.NET
|
||||
pages. In the Apache Project, it is a term for the "eXtensible Server
|
||||
Pages" technology so as they are very different things, they don't
|
||||
conflict.
|
||||
|
||||
Q: What about using something like Jabber instead of the System.Messaging
|
||||
namespace?.
|
||||
|
||||
A: In short, MSMQ is not something like Jabber, but asynchronous messaging
|
||||
through queues. Usefull queues do more than serialize messages, they are
|
||||
also platform bridges.
|
||||
|
||||
Q: Are you supporting XMLDocument and relatives?.
|
||||
|
||||
A: Currently, we aren't implementing them yet. It would require updates to
|
||||
most of the XmlNode derivatives so it's not a trivial task. We are
|
||||
currently focusing on getting XPath support working.
|
||||
|
||||
Q: Is there any plan to develop an aspx server for Mono?.
|
||||
|
||||
A: The webserver turned out to be very simple compared to the rest of the
|
||||
work. Gonzalo has got the page generator mostly done (a module called
|
||||
xsp, who has nothing to do with the XSP term used in the Apache Project).
|
||||
Patrik has done a lot of the work to get the ProcessRequest to work.
|
||||
You can try to help in the final touches to the System.Web classes and
|
||||
writing regression tests for the widgets we have.
|
||||
|
||||
Q: Is there any way I can develop the class libraries using linux yet?
|
||||
|
||||
A: Yes. Some class libraries can be developed on Linux. Search for
|
||||
Paolo's post (he lists which classes can be compiled fine now).
|
||||
|
||||
Q: Is there any way I can install a known working copy of mono in /usr,
|
||||
and an experimental copy somewhere else, and have both copies use
|
||||
their own libraries? (I'm still not very good at library paths in
|
||||
linux)
|
||||
|
||||
A: Yes. Just use two installation prefixes.
|
||||
|
||||
|
||||
<a name="asp">
|
||||
** Mono and ASP.NET
|
||||
|
||||
Q: Is Mono supporting ASP.NET?
|
||||
|
||||
A: Yes. The development of the support for ASP.NET comes in various stages,
|
||||
here is what Gonzalo has been working on: 1. The Parser. 2. Getting the
|
||||
parser to generate output compatible with ASP.NET. 3. Running the sample
|
||||
output with the real Microsoft runtime but using our generated page. 4.
|
||||
Running the sample with our classes with the .NET runtime. 5. Running
|
||||
our sample code with our classes with our runtime. This is the process
|
||||
we are following. Currently Gonzalo has reached point 5.
|
||||
|
||||
<a name="java">
|
||||
** Mono and Java
|
||||
|
||||
@@ -663,18 +486,6 @@ A: Yes, it is possible. Here are a few starting point:
|
||||
be translated into the equivalent "meaning" in CLR-land.
|
||||
</ul>
|
||||
|
||||
Q: Could mono become a hybrid cil/java platform?
|
||||
|
||||
A: No. It is quite far from the philosophy of the project. The idea of Mono
|
||||
is, to have only _one_ VM, on which all can run. And if there existing a
|
||||
binary-converter from Java-.class to IL and if there existing something
|
||||
like J-Sharp on Mono, you can write programs in Java, which than can run
|
||||
on Mono. You do not need two bindings (like your example: GTK-Sharp _and_
|
||||
Java-Gnome). You need only _one_ of it (GTK-Sharp). Thats the idea of Mono.
|
||||
An other point is, that there are no people, who use OpenSource-JVMs. They
|
||||
all prefer Suns original. But for Unix there don't exist a .NET-Framework.
|
||||
So it is possible, that in the future Mono is the standard .NET for unixes.
|
||||
|
||||
<a name="extending"></a>
|
||||
** Extending Mono
|
||||
|
||||
@@ -702,20 +513,7 @@ A: Embracing a good technology is good. Extending technologies in
|
||||
|
||||
If you have innovative ideas, and want to create new classes, we
|
||||
encourage you to make those classes operate correctly well in both
|
||||
Mono and .NET.
|
||||
|
||||
Q: Is there any way I can develop the class libraries using linux yet?
|
||||
|
||||
A: Yes. Some class libraries can be developed on Linux. Search for
|
||||
Paolo's post (he lists which classes can be compiled fine now).
|
||||
|
||||
Q: Is there any way I can install a known working copy of mono in /usr,
|
||||
and an experimental copy somewhere else, and have both copies use
|
||||
their own libraries? (I'm still not very good at library paths in
|
||||
linux)
|
||||
|
||||
A: Yes. Just use two installation prefixes.
|
||||
|
||||
Mono and .NET
|
||||
|
||||
<a name="portability"></a>
|
||||
** Portability
|
||||
@@ -726,7 +524,7 @@ A: Currently, we are doing our work on Linux-based systems and
|
||||
Windows. We do not expect many Linux-isms in the code, so it
|
||||
should be easy to port Mono to other UNIX variants.
|
||||
|
||||
Q: What about Mono on non Linux-based systems?
|
||||
Q: What about Mono on non X-based systems?
|
||||
|
||||
A: Our main intention at Ximian is to be able to develop GNOME
|
||||
applications with Mono, but if you are interested in providing a
|
||||
@@ -734,27 +532,11 @@ A: Our main intention at Ximian is to be able to develop GNOME
|
||||
MacOS X for example), we would gladly integrate them, as long
|
||||
they are under an open source license.
|
||||
|
||||
Q: What operating systems/CPUs do you support
|
||||
Q: Will Mono run on Windows?
|
||||
|
||||
A: Mono currently runs on Linux, Windows, Solaris and FreeBSD.
|
||||
There is a JIT engine available for x86 processors that can
|
||||
generate code and optimizations tailored for a particular CPU.
|
||||
|
||||
Interpreters exist for the SPARC, PowerPC and StrongARM cpus.
|
||||
|
||||
Q: Does Mono run on Windows?
|
||||
|
||||
A: Yes. The Compiler and the runtime both run on Windows.
|
||||
|
||||
Q: When will mono and mcs compile on Linux?.
|
||||
|
||||
A: That happend a long time ago. Know you can download and compile
|
||||
them or even install them from already made binary packages for
|
||||
Windows and for Linux (RPM/DEB).
|
||||
|
||||
Q: Will I require Cygwin to run mono?
|
||||
|
||||
A: No. While you'll need it to compile it, it runs without cygwin and does not even require cygwin1.dll
|
||||
A: We hope so. Currently some parts of Mono only run on Windows
|
||||
(the C# compiler is a .NET executable) and other parts have only
|
||||
been compiled on Linux, but work on Windows with Cygwin.
|
||||
|
||||
Q: Will Mono depend on GNOME?
|
||||
|
||||
@@ -763,17 +545,6 @@ A: It will depend only if you are using a particular assembly (for
|
||||
in Mono for implementing a `Hello World Enterprise P2P Web
|
||||
Service', you will not need any GNOME components.
|
||||
|
||||
Q: Is anyone working on porting Mono to IA-64?
|
||||
|
||||
A: Nobody is working on such port.
|
||||
|
||||
Q: If I were about to start a Mono port to IA-64,would the same lburg code
|
||||
generator work for IA-64 also? or anything else need to be used for code
|
||||
generation(as the processor architecture is totally different from IA32)
|
||||
|
||||
A: The lburg approach can be use for any processor architecture. But you might
|
||||
think in another better approach.
|
||||
|
||||
<a name="reuse"></a>
|
||||
** Reusing Existing Code
|
||||
|
||||
@@ -789,53 +560,11 @@ A: At this time, we are investigating whether we can use elements of
|
||||
defined API that splits the JIT from the GC system and the actual
|
||||
byte code implementation.
|
||||
|
||||
We are using some pieces of ORP (Their code generation interface)
|
||||
and we use it as a source of inspiration for optimizations. Paolo
|
||||
and Dietmar consider ORP as being one of the best JIT engines out
|
||||
there (and their research work and papers are very useful if you are
|
||||
interested in JIT technology).
|
||||
|
||||
Q: What about using GNU Lightning?
|
||||
|
||||
A: We are not using GNU Lightning. Our JIT is using an instruction
|
||||
selector based on tree-pattern matching, and a code generation
|
||||
interface that is very tied to the current architecture.
|
||||
|
||||
Q: Will I be able to use Microsoft SQL Server 2000 or will I need to switch
|
||||
to a specific Open Source Database. Will I need to recode?
|
||||
|
||||
A: There should not be any need to recode.
|
||||
|
||||
Q: What do I need to watch out for when programming in VB.NET so that I'm
|
||||
sure to be able to run those apps on Linux?
|
||||
|
||||
A: Not making any PInvoke or DLL calls should and not using anything in
|
||||
the Microsoft.* namespaces should suffice. Also do not use any
|
||||
Methods/Classes marked as "This type/method supports the .NET Framework
|
||||
infrastructure and is not intended to be used directly from your code."
|
||||
even if you know what these classes/methods do.
|
||||
|
||||
Q: Will built-in reporting be supported for crystal reports? This is a
|
||||
heavily used part of our system.
|
||||
|
||||
A: Probably not. Crystal Reports are propriety. Someone may try to emulate
|
||||
the behaviour, but no-one has yet volunteered.
|
||||
|
||||
Q: Who about writing to the registry? As I understand it, Linux does not have
|
||||
a counterpart to the registry. Should I avoid relying on that feature?
|
||||
|
||||
A: Try to avoid it. Although there would be a emulation for registry in
|
||||
Mono too. GNOME does have a registry like mechanism for configuration. But
|
||||
Even if gnome has a configuration system similar to the registry, the keys
|
||||
will not be equal, so you will probably end up having to do some runtime
|
||||
detection, and depending on this load an assembly that has your
|
||||
platform-specific hacks.
|
||||
|
||||
Q: System.Data.SqlClient with FreeTDS, will you port parts of these to C# and
|
||||
use them?
|
||||
|
||||
A: if their license is compatible with mono's, yes, we'd think about porting
|
||||
them. If not, we'll continue with the plan of using FreeTDS.
|
||||
A: We are also researching <a
|
||||
href="http://www.gnu.org/software/lightning/lightning.html">GNU
|
||||
Lightning</a>.
|
||||
|
||||
<a name="gcc"></a>
|
||||
** Mono and GCC
|
||||
@@ -939,8 +668,8 @@ A: No. First, its basic functional capabilities have pre-existed too
|
||||
open source software community with good development tools, which
|
||||
is the primary reason for developing Mono.
|
||||
|
||||
<a name="etc"></a>
|
||||
** Miscellaneous Questions
|
||||
<a name="etc"></a> **
|
||||
Miscellaneous Questions
|
||||
|
||||
Q: You say that the CLI allows multiple languages to execute on the
|
||||
same environment. Isn't this the purpose of CORBA?
|
||||
@@ -967,25 +696,3 @@ Q: Will Ximian offer certifications on Mono or related technologies?.
|
||||
|
||||
A: It's possible. But there is no plan about this. So the short answer is no.
|
||||
|
||||
Q: Are there any Boehm's gc binaries?
|
||||
|
||||
A: Yes. You can find them <a href="http://java.thn.htu.se/~toor/">here</a>
|
||||
|
||||
Q: I have get into trouble when trying to build the site in my Linux box, what
|
||||
can I do?.
|
||||
|
||||
A: Try to change the line "./mono-rss.exe ../index deploy/index.rss" for
|
||||
"mono ./mono-rss.exe ../index deploy/index.rss"
|
||||
|
||||
Q: How can I report a bug?
|
||||
|
||||
A: The best thing is to track down the bug and provide a simple test to
|
||||
reproduce the bug. You can then add the bug to bugzilla:
|
||||
http://bugzilla.ximian.com/enter_bug.cgi or simply send it to
|
||||
[email protected].
|
||||
|
||||
Q: Does mcs support the same command line options as the MS C#
|
||||
compiler?
|
||||
|
||||
A: The Mono C# compiler on CVS now supports the same command line
|
||||
arguments as the Microsoft C# compiler does.
|
||||
@@ -10,16 +10,6 @@
|
||||
Microsoft J# compiler. We could then allow the migration of
|
||||
Java applications to the Mono runtime.
|
||||
|
||||
** Native compiler
|
||||
|
||||
Although a native compiler can be built, and probably should be
|
||||
built using an existing compiler, a short term solution is to
|
||||
build a translator from Java class files to the ECMA CIL images.
|
||||
|
||||
This has the advantage that we can use an existing and tested
|
||||
Java compiler to generate the code, and then we can use an automated
|
||||
code compiler that compiles Java VM bytecodes to CIL bytecodes.
|
||||
|
||||
** The translator.
|
||||
|
||||
It would be interesting to write a semantic translator that
|
||||
|
||||
+3
-101
@@ -3,115 +3,17 @@
|
||||
Here are some other free compilers for other languages that
|
||||
target .NET and should work with Mono with no problem:
|
||||
|
||||
<ul>
|
||||
* <a href="#ComponentPascal">Component Pascal</a>
|
||||
* <a href="#MonoLogo">MonoLogo</a>
|
||||
* <a href="#Oberon">Oberon</a>
|
||||
* <a href="#Forth">Forth</a>
|
||||
</ul>
|
||||
|
||||
Languages we would like to have supported, with links to resources:
|
||||
|
||||
<ul>
|
||||
* <a href="#JavaScript">Java Script</a>
|
||||
* <a href="java.html">Java</a>
|
||||
* <a href="#c">C</a>
|
||||
</ul>
|
||||
|
||||
Some experimental languages:
|
||||
|
||||
<ul>
|
||||
* <a href="#Tachy">Tachy</a> (scheme-like)
|
||||
</ul>
|
||||
|
||||
<a name="MonoLogo">
|
||||
** MonoLogo
|
||||
|
||||
An implementation of Logo for Mono (and .NET)
|
||||
|
||||
The <A href="http://monologo.sf.net">Mono Logo</a> compiler is
|
||||
hosted in the <a href="ccvs.html">Mono CVS</a> repository
|
||||
and also available on the <a href="anoncvs.html">AnonCVS</a> mirrors.
|
||||
|
||||
<a name="Oberon">
|
||||
** Oberon
|
||||
* Oberon
|
||||
|
||||
This Oberon compiler is written in Oberon.NET (another self
|
||||
hosting compiler).
|
||||
|
||||
The main site <a href="http://www.oberon.ethz.ch/oberon.net/">http://www.oberon.ethz.ch/oberon.net/</a>
|
||||
|
||||
Download:
|
||||
<a href="http://www.oberon.ethz.ch/oberon.net/download/">http://www.oberon.ethz.ch/oberon.net/download/</a>
|
||||
|
||||
Examples:
|
||||
<a href="http://www.oberon.ethz.ch/oberon.net/examples/">http://www.oberon.ethz.ch/oberon.net/examples/</a>
|
||||
|
||||
hosting compiler):
|
||||
|
||||
<a href="http://www.superin.formativ.net/mono/oberon/oberon.zip">http://www.superin.formativ.net/mono/oberon/oberon.zip</a>
|
||||
|
||||
<a name="ComponentPascal">
|
||||
** Component Pascal
|
||||
* Component Pascal
|
||||
|
||||
The Component Pascal compiler: <a
|
||||
href="http://www2.fit.qut.edu.au/CompSci/PLAS/ComponentPascal">Home
|
||||
Page</a>, you can <a
|
||||
href="http://www2.fit.qut.edu.au/CompSci/PLAS/ComponentPascal/gpcp1.1.4-netRTM.zip">
|
||||
download it</a>
|
||||
|
||||
<a name="Forth">
|
||||
** Delta Forth
|
||||
|
||||
The Delta Forth.NET project: <a
|
||||
href="http://www.codeproject.com/dotnet/dforthnet.asp">Home
|
||||
Page</a> and <a href="http://www.dataman.ro/dforth/index.html">more
|
||||
details here</a>.
|
||||
|
||||
|
||||
<a name="Tachy">
|
||||
** Tachy
|
||||
|
||||
A subset of Scheme language called <a
|
||||
href="http://radio.weblogs.com/0101156/stories/2002/03/19/tachy.html">Tachy</a>
|
||||
|
||||
* Missing languages
|
||||
|
||||
Here is a list of a few languages that we would like to see
|
||||
supported. We will try to maintain a set of links here with
|
||||
technical information for those interested in porting,
|
||||
implementing or adapting a compiler for any of these
|
||||
languages:
|
||||
|
||||
<a name="JavaScript">
|
||||
* Java Script
|
||||
|
||||
The Mozilla project has an implementation of JavaScript
|
||||
written in Java called <a
|
||||
href="http://www.mozilla.org/rhino/">Rhino</a>.
|
||||
|
||||
You could port this code from Java to C#.
|
||||
|
||||
Note that since JavaScript allows for evaluation at runtime,
|
||||
the compiler has to be built as a class that can be invoked at
|
||||
runtime.
|
||||
|
||||
<a name="c">
|
||||
* C
|
||||
|
||||
Ideally GCC could be modified to generate CIL, but it is a
|
||||
big task. That would give us various compilers in one pass.
|
||||
|
||||
Rumor is that the next version of the LCC compiler will
|
||||
include an IL backend. We do not know how extensive the support
|
||||
for integration with .NET will be, but it would be an interesting
|
||||
excercise to add an extension to C to call into .NET code.
|
||||
|
||||
LCC is not an open source compiler, but it is free as long as you
|
||||
do not profit from selling it.
|
||||
|
||||
<a name="Java">
|
||||
* Java
|
||||
|
||||
We have a <a href="java.html">separate page</a> for Java.
|
||||
|
||||
|
||||
+12
-124
@@ -1,10 +1,6 @@
|
||||
* Mailing Lists
|
||||
|
||||
Most of the mailing lists are in english, but there is also
|
||||
Mono Hispano that has lists in Spanish. <a
|
||||
href="http://www.es.gnome.org/mailman/listinfo/mono-hispano">Mono Hispano list</a>
|
||||
|
||||
There are a number of mailing lists for Mono in English:
|
||||
There are a number of mailing lists for Mono
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
@@ -62,6 +58,16 @@
|
||||
Discussion on the documentation of Mono.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<b><a
|
||||
href="http://lists.ximian.com/mailman/listinfo/mono-patches">mono-patches</a></b>
|
||||
</td>
|
||||
<td>
|
||||
Track the development of Mono in realtime: receive patches to the Mono repository
|
||||
by email.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<b><a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs</a></b>
|
||||
@@ -81,122 +87,4 @@
|
||||
list at Develop.com:</a></b> The guys at Develop Mentor run
|
||||
this general purpose mailing list.
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
* Google search of the archives
|
||||
|
||||
<!-- Google Search with mods -->
|
||||
<center>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="http://www.google.com/search"><img src="mailing-lists_files/Logo_40wht.gif" border="0" alt="Google" align="middle"></a></td>
|
||||
|
||||
<td>
|
||||
<table>
|
||||
|
||||
<tr><td>
|
||||
<FORM method=GET action=http://www.google.com/custom>
|
||||
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
|
||||
<tr valign=top>
|
||||
<td>
|
||||
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
|
||||
<INPUT TYPE=hidden name=q size=31 maxlength=255 value="mono">
|
||||
<INPUT type=submit name=sa VALUE="Search">
|
||||
<input type="hidden" name="cof" value="GIMP:#00ff00;T:#ffffff;LW:401;BIMG:http://www.go-mono.com/images/bgsquares.gif;ALC:#ffffff;L:http://www.go-mono.com/images/mono.gif;GFNT:#cc7700;LC:#ee9900;LH:80;BGC:#444444;AH:center;VLC:#cccccc;S:http://www.go-mono.com;GALT:#eeee00;AWFID:45753ce73241ef7a;">
|
||||
<font face="arial,sans-serif" size="-1"><input type="hidden" name="domains" value="www.go-mono.com;lists.ximian.com"><br><input type="radio" name="sitesearch" value="www.go-mono.com"> Search www.go-mono.com <input type="radio" name="sitesearch" value="lists.ximian.com"> Search lists.ximian.com </font><br>
|
||||
</td></tr></TABLE>
|
||||
</FORM>
|
||||
</tr></td>
|
||||
|
||||
<tr><td>
|
||||
<FORM method=GET action=http://www.google.com/custom>
|
||||
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
|
||||
<tr valign=top>
|
||||
<td>
|
||||
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
|
||||
<INPUT TYPE=hidden name=q size=31 maxlength=255 value="mono-list">
|
||||
<INPUT type=submit name=sa VALUE="Search">
|
||||
<input type="hidden" name="cof" value="GIMP:#00ff00;T:#ffffff;LW:401;BIMG:http://www.go-mono.com/images/bgsquares.gif;ALC:#ffffff;L:http://www.go-mono.com/images/mono.gif;GFNT:#cc7700;LC:#ee9900;LH:80;BGC:#444444;AH:center;VLC:#cccccc;S:http://www.go-mono.com;GALT:#eeee00;AWFID:45753ce73241ef7a;">
|
||||
<font face=arial,sans-serif size=-1><input type=hidden name=domains value="lists.ximian.com"><br> <input type=hidden name=sitesearch value="lists.ximian.com"> Search mono-<b>list</b> </font><br>
|
||||
</td></tr></TABLE>
|
||||
</FORM>
|
||||
</tr></td>
|
||||
|
||||
<tr><td>
|
||||
<FORM method=GET action=http://www.google.com/custom>
|
||||
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
|
||||
<tr valign=top>
|
||||
<td>
|
||||
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
|
||||
<INPUT TYPE=hidden name=q size=31 maxlength=255 value="mono-announce-list">
|
||||
<INPUT type=submit name=sa VALUE="Search">
|
||||
<input type="hidden" name="cof" value="GIMP:#00ff00;T:#ffffff;LW:401;BIMG:http://www.go-mono.com/images/bgsquares.gif;ALC:#ffffff;L:http://www.go-mono.com/images/mono.gif;GFNT:#cc7700;LC:#ee9900;LH:80;BGC:#444444;AH:center;VLC:#cccccc;S:http://www.go-mono.com;GALT:#eeee00;AWFID:45753ce73241ef7a;">
|
||||
<font face=arial,sans-serif size=-1><input type=hidden name=domains value="lists.ximian.com"><br> <input type=hidden name=sitesearch value="lists.ximian.com"> Search mono-<b>announce-list</b> </font><br>
|
||||
</td></tr></TABLE>
|
||||
</FORM>
|
||||
</tr></td>
|
||||
|
||||
<tr><td>
|
||||
<FORM method=GET action=http://www.google.com/custom>
|
||||
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
|
||||
<tr valign=top>
|
||||
<td>
|
||||
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
|
||||
<INPUT TYPE=hidden name=q size=31 maxlength=255 value="mono-bugs">
|
||||
<INPUT type=submit name=sa VALUE="Search">
|
||||
<input type="hidden" name="cof" value="GIMP:#00ff00;T:#ffffff;LW:401;BIMG:http://www.go-mono.com/images/bgsquares.gif;ALC:#ffffff;L:http://www.go-mono.com/images/mono.gif;GFNT:#cc7700;LC:#ee9900;LH:80;BGC:#444444;AH:center;VLC:#cccccc;S:http://www.go-mono.com;GALT:#eeee00;AWFID:45753ce73241ef7a;">
|
||||
<font face=arial,sans-serif size=-1><input type=hidden name=domains value="lists.ximian.com"><br> <input type=hidden name=sitesearch value="lists.ximian.com"> Search mono-<b>bugs</b> </font><br>
|
||||
</td></tr></TABLE>
|
||||
</FORM>
|
||||
</tr></td>
|
||||
|
||||
<tr><td>
|
||||
<FORM method=GET action=http://www.google.com/custom>
|
||||
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
|
||||
<tr valign=top>
|
||||
<td>
|
||||
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
|
||||
<INPUT TYPE=hidden name=q size=31 maxlength=255 value="mono-gc-list">
|
||||
<INPUT type=submit name=sa VALUE="Search">
|
||||
<input type="hidden" name="cof" value="GIMP:#00ff00;T:#ffffff;LW:401;BIMG:http://www.go-mono.com/images/bgsquares.gif;ALC:#ffffff;L:http://www.go-mono.com/images/mono.gif;GFNT:#cc7700;LC:#ee9900;LH:80;BGC:#444444;AH:center;VLC:#cccccc;S:http://www.go-mono.com;GALT:#eeee00;AWFID:45753ce73241ef7a;">
|
||||
<font face=arial,sans-serif size=-1><input type=hidden name=domains value="lists.ximian.com"><br> <input type=hidden name=sitesearch value="lists.ximian.com"> Search mono-<b>gc-list</b> </font><br>
|
||||
</td></tr></TABLE>
|
||||
</FORM>
|
||||
</tr></td>
|
||||
|
||||
<tr><td>
|
||||
<FORM method=GET action=http://www.google.com/custom>
|
||||
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
|
||||
<tr valign=top>
|
||||
<td>
|
||||
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
|
||||
<INPUT TYPE=hidden name=q size=31 maxlength=255 value="mono-cvs-list">
|
||||
<INPUT type=submit name=sa VALUE="Search">
|
||||
<input type="hidden" name="cof" value="GIMP:#00ff00;T:#ffffff;LW:401;BIMG:http://www.go-mono.com/images/bgsquares.gif;ALC:#ffffff;L:http://www.go-mono.com/images/mono.gif;GFNT:#cc7700;LC:#ee9900;LH:80;BGC:#444444;AH:center;VLC:#cccccc;S:http://www.go-mono.com;GALT:#eeee00;AWFID:45753ce73241ef7a;">
|
||||
<font face=arial,sans-serif size=-1><input type=hidden name=domains value="lists.ximian.com"><br> <input type=hidden name=sitesearch value="lists.ximian.com"> Search mono-<b>cvs-list</b> </font><br>
|
||||
</td></tr></TABLE>
|
||||
</FORM>
|
||||
</tr></td>
|
||||
|
||||
<tr><td>
|
||||
<FORM method=GET action=http://www.google.com/custom>
|
||||
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
|
||||
<tr valign=top>
|
||||
<td>
|
||||
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
|
||||
<INPUT TYPE=hidden name=q size=31 maxlength=255 value="mono-patches">
|
||||
<INPUT type=submit name=sa VALUE="Search">
|
||||
<input type="hidden" name="cof" value="GIMP:#00ff00;T:#ffffff;LW:401;BIMG:http://www.go-mono.com/images/bgsquares.gif;ALC:#ffffff;L:http://www.go-mono.com/images/mono.gif;GFNT:#cc7700;LC:#ee9900;LH:80;BGC:#444444;AH:center;VLC:#cccccc;S:http://www.go-mono.com;GALT:#eeee00;AWFID:45753ce73241ef7a;">
|
||||
<font face=arial,sans-serif size=-1><input type=hidden name=domains value="lists.ximian.com"><br> <input type=hidden name=sitesearch value="lists.ximian.com"> Search mono-<b>patches</b> </font><br>
|
||||
</td></tr></TABLE>
|
||||
</FORM>
|
||||
</tr></td>
|
||||
|
||||
|
||||
</table>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</center>
|
||||
<!-- /Google Search with mods -->
|
||||
</ul>
|
||||
@@ -1,9 +0,0 @@
|
||||
* Mono for beginners
|
||||
|
||||
Hinne Hettema has provided us a beautiful and complete
|
||||
document on how to obtain, install and test Mono on
|
||||
a Linux system.
|
||||
|
||||
You can <a href="mono-beginning/t1.html">Read it online</a>,
|
||||
download a <a href="mono-beginning.pdf">PDF</a> version, or get the
|
||||
<a href="mono-beginning.xml">source code</a> for it.
|
||||
File diff suppressed because it is too large.
Load diff
@@ -42,11 +42,6 @@ fi
|
||||
|
||||
cvs checkout mono || exit -1
|
||||
|
||||
if [ ! -z "${AUTO_STABLE}" -o -e /usr/autotool/stable ]; then
|
||||
export AUTO_STABLE=${AUTO_STABLE:-/usr/autotool/stable}
|
||||
export AUTO_DEVEL=${AUTO_STABLE}
|
||||
fi
|
||||
|
||||
# Need to install pkgconfig and set ACLOCAL_FLAGS if there is not a
|
||||
# pkgconfig installed already. Otherwise set PKG_CONFIG_PATH to the
|
||||
# glib we're about to install in $here/install. This script could
|
||||
|
||||
@@ -1,551 +0,0 @@
|
||||
|
||||
<Mono newbie coders start file>
|
||||
<h1> A little help for mono newbie coders </h1>
|
||||
|
||||
|
||||
For those who are new to Mono and are impatient to contribute
|
||||
with code (uhh... you are brave!!) here is the document you
|
||||
should read.
|
||||
|
||||
|
||||
You will see all Mono hackers say the same (great minds have
|
||||
similar way of thinking): First, DO WRITE TESTS!!!. In order
|
||||
to do that:
|
||||
|
||||
<ul>
|
||||
* Start with the NUnit Tests Guidelines. In the cvs
|
||||
they are located at: mcs/class/doc/NUnitGuideli...
|
||||
|
||||
* But wait, this is a document for impatient
|
||||
people. So EVERYTHING should be here. Well, it is.
|
||||
</ul>
|
||||
|
||||
|
||||
<h2> The NUnit Tests Guidelines document </h2>
|
||||
|
||||
Mono NUnit Test Guidelines and Best Practices
|
||||
|
||||
Authors: Nick Drochak <[email protected]>
|
||||
Martin Baulig <[email protected]>
|
||||
Last Update: 2002-03-02
|
||||
Rev: 0.3
|
||||
|
||||
<b> Purpose </b>
|
||||
|
||||
This document captures all the good ideas people have had
|
||||
about writing NUnit tests for the mono project. This document
|
||||
will be useful for anyone who writes or maintains unit tests.
|
||||
|
||||
<b> Other resources </b>
|
||||
|
||||
- mcs/class/README has an explanation of the build process and
|
||||
how it relates to the tests.
|
||||
- http://nunit.sourceforge.net is the place to find out about
|
||||
NUnit
|
||||
|
||||
<b> Getting Started </b>
|
||||
|
||||
If you are new to writing NUnit tests, there is a template
|
||||
you may use to help get started. The file is:
|
||||
|
||||
mcs/class/doc/TemplateTest.cs
|
||||
|
||||
|
||||
(2.- This is the point two!. This file is just after the end
|
||||
of the guidelines. Copy/paste it in another buffer. And keep
|
||||
reading.)
|
||||
|
||||
Save a copy of this file in the appropriate test subdirecty
|
||||
(see below), and replace all the [text] markers with
|
||||
appropriate code. Comments in the template are there to guide
|
||||
you. You should also look at existing tests to see how other
|
||||
people have written them.
|
||||
|
||||
mcs/class/corlib/Test/System.Collections/CollectionBaseTest.cs
|
||||
|
||||
is a small one that might help.
|
||||
|
||||
(3.- You reached the third point. And as expected, it's just
|
||||
here to tell you that the content of CollectionBaseTest.cs is
|
||||
after the TemplateTest.cs code at the end of these
|
||||
guidelines.)
|
||||
|
||||
The directory that will contain your new file depends on the
|
||||
assembly/namespace of the class for which you are creating the
|
||||
tests. Under mcs/class there is a directory for each assembly.
|
||||
In each assembly there is a Test directory, e.g.
|
||||
mcs/class/corlib/Test. In the Test directory there are
|
||||
sub-directories for each namespace in the assembly, e.g.
|
||||
mcs/class/corlib/Test/Sytem. Put your new test file in the
|
||||
appropriate sub-directory under Test for the class you are
|
||||
testing.
|
||||
|
||||
Once your test class is complete, you need to add it to the
|
||||
AllTests.cs file in the same directory as your new test. Add a
|
||||
call to "suite.AddTest()" passing the name of your new test
|
||||
class's suite property as the parameter. You will see examples
|
||||
in the AllTests.cs file, so just copy and paste inside there.
|
||||
|
||||
Once all of that is done, you can do a 'make test' from the top
|
||||
mcs directory. Your test class will be automagically included
|
||||
in the build and the tests will be run along with all the
|
||||
others.
|
||||
|
||||
<b> Tips </b>
|
||||
|
||||
<b> Provide an unique error message for Assert() </b>
|
||||
|
||||
Include an unique message for each Assert() so that when the
|
||||
assert fails, it is trivial to locate the failing one.
|
||||
Otherwise, it may be difficult to determine which part of the
|
||||
test is failing. A good way to ensure unique messages is to use
|
||||
something like #A01, #A02 etc.
|
||||
|
||||
Bad:
|
||||
<pre>
|
||||
AssertEquals("array match", compare[0], i1[0]);
|
||||
AssertEquals("array match", compare[1], i1[1]);
|
||||
AssertEquals("array match", compare[2], i1[2]);
|
||||
AssertEquals("array match", compare[3], i1[3]);
|
||||
</pre>
|
||||
Good:
|
||||
<pre>
|
||||
AssertEquals("#A01", compare[0], i1[0]);
|
||||
AssertEquals("#A02", compare[1], i1[1]);
|
||||
AssertEquals("#A03", compare[2], i1[2]);
|
||||
AssertEquals("#A04", compare[3], i1[3]);
|
||||
</pre>
|
||||
Once you used such a number in an Assert(), don't change it
|
||||
later on - people might use it it identify the test in bug
|
||||
reports or in mailing lists.
|
||||
|
||||
<b> Use AssertEquals() to compare things, not Assert(). </b>
|
||||
|
||||
Never compare two values with Assert() - if the test fails,
|
||||
people have no idea what went wrong while AssertEquals()
|
||||
reports the failed value.
|
||||
|
||||
Bad:
|
||||
<pre>
|
||||
Assert ("A01", myTicks[0] == t1.Ticks);
|
||||
</pre>
|
||||
Good:
|
||||
<pre>
|
||||
AssertEquals ("A01", myTicks[0], t1.Ticks);
|
||||
</pre>
|
||||
|
||||
<b> Constructors </b>
|
||||
|
||||
When writing your testcase, please make sure to provide a
|
||||
constructor which takes no arguments:
|
||||
|
||||
<pre>
|
||||
public class DateTimeTest : TestCase
|
||||
{
|
||||
|
||||
public DateTimeTest() : base ("[MonoTests.System.DateTimeTest]") {}
|
||||
public DateTimeTest (string name): base(name) {}
|
||||
|
||||
public static ITest Suite
|
||||
{
|
||||
get {
|
||||
TestSuite suite = new TestSuite ();
|
||||
return suite;
|
||||
}
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
|
||||
<b> Namespace </b>
|
||||
|
||||
Please keep the namespace within each test directory
|
||||
consistent - all tests which are referenced in the same
|
||||
AllTests.cs must be in the same namespace. Of course you can
|
||||
use subnamespaces as you like - especially for subdirectories
|
||||
of your testsuite.
|
||||
|
||||
For instance, if your AllTests.cs is in namespace "MonoTests"
|
||||
and you have a subdirectory called "System", you can put all
|
||||
the tests in that dir into namespace "MonoTests.System".
|
||||
|
||||
<b> Test your test with the microsoft runtime </b>
|
||||
|
||||
If possible, try to run your testsuite with the Microsoft
|
||||
runtime on Windows and make sure all tests in it pass. This is
|
||||
especially important if you're writing a totally new testcase
|
||||
- without this check you can never be sure that your testcase
|
||||
contains no bugs ....
|
||||
|
||||
Don't worry if you're writing your test on Linux, other people
|
||||
can test it for you on Windows.
|
||||
|
||||
Sometimes you may discover that a test doesn't show the
|
||||
expected result when run with the Microsoft runtime - either
|
||||
because there is a bug in their runtime or something is
|
||||
misleading or wrong in their documentation. In this case,
|
||||
please put a detailed description of the problem to
|
||||
mcs/class/doc/API-notes and do also report it to the list -
|
||||
we'll forward this to the Microsoft people from time to time
|
||||
to help them fix their documentation and runtime.
|
||||
|
||||
<pre>
|
||||
-------------------- TemplateTest.cs begins ----------
|
||||
|
||||
// this is a template for making NUnit tests. Text enclosed
|
||||
// in square brackets (and the brackets themselves) should be
|
||||
// replaced by appropiate code.
|
||||
|
||||
// [File Name].cs - NUnit Test Cases for [explain here]
|
||||
//
|
||||
// [Author Name] ([Author email Address])
|
||||
//
|
||||
// (C) [Copyright holder]
|
||||
//
|
||||
|
||||
// these are the standard namespaces you will need. You may
|
||||
// need to add more depending on your tests.
|
||||
using NUnit.Framework;
|
||||
using System;
|
||||
|
||||
// all test namespaces start with "MonoTests." Append the
|
||||
// Namespace that contains the class you are testing, e.g.
|
||||
// MonoTests.System.Collections
|
||||
namespace MonoTests.[Namespace]
|
||||
{
|
||||
|
||||
// the class name should end with "Test" and start with the name
|
||||
// of the class you are testing, e.g. CollectionBaseTest
|
||||
public class [Class to be tested]Test : TestCase {
|
||||
|
||||
// there should be two constructors for your class. The first
|
||||
// one (without parameters) should set the name to something
|
||||
// unique.
|
||||
// Of course the name of the method is the same as the name of
|
||||
// the class
|
||||
public [Constructor]() : base ("[Namespace.Class]") {}
|
||||
public [Constructor](string name) : base(name) {}
|
||||
|
||||
// this method is run before each Test* method is called. You
|
||||
// can put variable initialization, etc. here that is common to
|
||||
// each test.
|
||||
// Just leave the method empty if you don't need to use it.
|
||||
protected override void SetUp() {}
|
||||
|
||||
// this method is run after each Test* method is called. You
|
||||
// can put clean-up code, etc. here. Whatever needs to be done
|
||||
// after each test. Just leave the method empty if you don't need
|
||||
// to use it.
|
||||
protected override void TearDown() {}
|
||||
|
||||
// this property is required. You need change the parameter for
|
||||
// typeof() below to be your class.
|
||||
public static ITest Suite {
|
||||
get {
|
||||
return new TestSuite(typeof([Classname here]));
|
||||
}
|
||||
}
|
||||
|
||||
// this is just one of probably many test methods in your test
|
||||
// class. each test method must start with "Test". All methods
|
||||
// in your class which start with "Test" will be automagically
|
||||
// called by the NUnit framework.
|
||||
public void Test[Something] {
|
||||
// inside here you will exercise your class and then
|
||||
// call Assert()
|
||||
}
|
||||
}
|
||||
|
||||
---------------------- TemplateTest.cs ends --------------
|
||||
|
||||
---------------------- CollectionBaseTest.cs begins ------
|
||||
//
|
||||
// System.Collections.CollectionBase
|
||||
// Test suite for System.Collections.CollectionBase
|
||||
//
|
||||
// Author:
|
||||
// Nick D. Drochak II
|
||||
//
|
||||
// (C) 2001 Nick D. Drochak II
|
||||
//
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace MonoTests.System.Collections
|
||||
{
|
||||
|
||||
public class CollectionBaseTest : TestCase
|
||||
{
|
||||
public CollectionBaseTest () : base
|
||||
("System.Collection.CollectionBase testsuite")
|
||||
{}
|
||||
public CollectionBaseTest (String name) : base (name)
|
||||
{}
|
||||
|
||||
// We need a concrete class to test the abstract base
|
||||
// class
|
||||
public class ConcreteCollection : CollectionBase
|
||||
{
|
||||
// These fields are used as markers to test
|
||||
// the On* hooks.
|
||||
public bool onClearFired;
|
||||
public bool onClearCompleteFired;
|
||||
|
||||
public bool onInsertFired;
|
||||
public int onInsertIndex;
|
||||
public bool onInsertCompleteFired;
|
||||
public int onInsertCompleteIndex;
|
||||
|
||||
public bool onRemoveFired;
|
||||
public int onRemoveIndex;
|
||||
public bool onRemoveCompleteFired;
|
||||
public int onRemoveCompleteIndex;
|
||||
|
||||
public bool onSetFired;
|
||||
public int onSetOldValue;
|
||||
public int onSetNewValue;
|
||||
public bool onSetCompleteFired;
|
||||
public int onSetCompleteOldValue;
|
||||
public int onSetCompleteNewValue;
|
||||
|
||||
// This constructor is used to test OnValid()
|
||||
public ConcreteCollection()
|
||||
{
|
||||
IList listObj;
|
||||
listObj = this;
|
||||
listObj.Add(null);
|
||||
}
|
||||
|
||||
// This constructor puts consecutive integers into the list
|
||||
public ConcreteCollection(int i) {
|
||||
IList listObj;
|
||||
listObj = this;
|
||||
|
||||
int j;
|
||||
for (j = 0; j< i; j++) {
|
||||
listObj.Add(j);
|
||||
}
|
||||
}
|
||||
|
||||
// A helper method to look at a value in the
|
||||
// list at a specific index
|
||||
public int PeekAt(int index)
|
||||
{
|
||||
IList listObj;
|
||||
listObj = this;
|
||||
return (int) listObj[index];
|
||||
}
|
||||
|
||||
// Mark the flag if this hook is fired
|
||||
protected override void OnClear() {
|
||||
this.onClearFired = true;
|
||||
}
|
||||
|
||||
// Mark the flag if this hook is fired
|
||||
protected override void OnClearComplete()
|
||||
{
|
||||
this.onClearCompleteFired = true;
|
||||
}
|
||||
|
||||
// Mark the flag, and save the paramter if
|
||||
// this hook is fired
|
||||
protected override void OnInsert(int index,
|
||||
object value)
|
||||
{
|
||||
this.onInsertFired = true;
|
||||
this.onInsertIndex = index;
|
||||
}
|
||||
|
||||
// Mark the flag, and save the paramter if
|
||||
// this hook is fired
|
||||
protected override void OnInsertComplete(int index,
|
||||
object value)
|
||||
{
|
||||
this.onInsertCompleteFired = true;
|
||||
this.onInsertCompleteIndex = index;
|
||||
}
|
||||
|
||||
// Mark the flag, and save the paramter if this hook
|
||||
// is fired
|
||||
protected override void OnRemove(int index,
|
||||
object value)
|
||||
{
|
||||
this.onRemoveFired = true;
|
||||
this.onRemoveIndex = index;
|
||||
}
|
||||
|
||||
// Mark the flag, and save the paramter if this hook
|
||||
// is fired
|
||||
protected override void OnRemoveComplete(int index,
|
||||
object value)
|
||||
{
|
||||
this.onRemoveCompleteFired = true;
|
||||
this.onRemoveCompleteIndex = index;
|
||||
}
|
||||
|
||||
// Mark the flag, and save the paramters if this hook
|
||||
// is fired
|
||||
protected override void OnSet(int index, object oldValue,
|
||||
object newValue)
|
||||
{
|
||||
this.onSetFired = true;
|
||||
this.onSetOldValue = (int) oldValue;
|
||||
this.onSetNewValue = (int) newValue;
|
||||
}
|
||||
|
||||
// Mark the flag, and save the paramters if this hook
|
||||
// is fired
|
||||
protected override void OnSetComplete(int index,
|
||||
object oldValue,
|
||||
object newValue)
|
||||
{
|
||||
this.onSetCompleteFired = true;
|
||||
this.onSetCompleteOldValue = (int) oldValue;
|
||||
this.onSetCompleteNewValue = (int) newValue;
|
||||
}
|
||||
} // public class ConcreteCollection
|
||||
|
||||
public static ITest Suite {
|
||||
get {
|
||||
return new TestSuite
|
||||
(typeof(CollectionBaseTest));
|
||||
}
|
||||
}
|
||||
|
||||
// Check the count property
|
||||
public void TestCount() {
|
||||
ConcreteCollection myCollection;
|
||||
myCollection = new ConcreteCollection(4);
|
||||
Assert(4 == myCollection.Count);
|
||||
}
|
||||
|
||||
// Make sure GetEnumerator returns an object
|
||||
public void TestGetEnumerator() {
|
||||
ConcreteCollection myCollection;
|
||||
myCollection = new ConcreteCollection(4);
|
||||
Assert(null != myCollection.GetEnumerator());
|
||||
}
|
||||
|
||||
// OnValid disallows nulls
|
||||
public void TestOnValid() {
|
||||
ConcreteCollection myCollection;
|
||||
try {
|
||||
myCollection = new ConcreteCollection();
|
||||
}
|
||||
catch (ArgumentNullException) {
|
||||
}
|
||||
}
|
||||
|
||||
// Test various Insert paths
|
||||
public void TestInsert() {
|
||||
ConcreteCollection myCollection;
|
||||
int numberOfItems;
|
||||
numberOfItems = 3;
|
||||
// The constructor inserts
|
||||
myCollection = new ConcreteCollection(numberOfItems);
|
||||
Assert(myCollection.onInsertFired);
|
||||
Assert(myCollection.onInsertCompleteFired);
|
||||
|
||||
// Using the IList interface, check inserts in the middle
|
||||
IList listObj = myCollection;
|
||||
listObj.Insert(1, 9);
|
||||
Assert(myCollection.onInsertIndex == 1);
|
||||
Assert(myCollection.onInsertCompleteIndex == 1);
|
||||
Assert(myCollection.PeekAt(1) == 9);
|
||||
}
|
||||
|
||||
// Test Clear and it's hooks
|
||||
public void TestClear()
|
||||
{
|
||||
ConcreteCollection myCollection;
|
||||
int numberOfItems;
|
||||
numberOfItems = 1;
|
||||
myCollection = new ConcreteCollection(numberOfItems);
|
||||
myCollection.Clear();
|
||||
Assert(myCollection.Count == 0);
|
||||
Assert(myCollection.onClearFired);
|
||||
Assert(myCollection.onClearCompleteFired);
|
||||
}
|
||||
|
||||
// Test RemoveAt, other removes and the hooks
|
||||
public void TestRemove()
|
||||
{
|
||||
ConcreteCollection myCollection;
|
||||
int numberOfItems;
|
||||
numberOfItems = 3;
|
||||
// Set up a test collection
|
||||
myCollection = new ConcreteCollection(numberOfItems);
|
||||
|
||||
// The list is 0-based. So if we remove the second one
|
||||
myCollection.RemoveAt(1);
|
||||
|
||||
// We should see the original third one in it's place
|
||||
Assert(myCollection.PeekAt(1) == 2);
|
||||
Assert(myCollection.onRemoveFired);
|
||||
Assert(myCollection.onRemoveIndex == 1);
|
||||
Assert(myCollection.onRemoveCompleteFired);
|
||||
Assert(myCollection.onRemoveCompleteIndex == 1);
|
||||
IList listObj = myCollection;
|
||||
listObj.Remove(0);
|
||||
// Confirm parameters are being passed to the hooks
|
||||
Assert(myCollection.onRemoveIndex == 0);
|
||||
Assert(myCollection.onRemoveCompleteIndex == 0);
|
||||
}
|
||||
|
||||
// Test the random access feature
|
||||
public void TestSet()
|
||||
{
|
||||
ConcreteCollection myCollection;
|
||||
int numberOfItems;
|
||||
numberOfItems = 3;
|
||||
myCollection = new ConcreteCollection(numberOfItems);
|
||||
IList listObj = myCollection;
|
||||
listObj[0] = 99;
|
||||
Assert((int) listObj[0] == 99);
|
||||
Assert(myCollection.onSetFired);
|
||||
Assert(myCollection.onSetCompleteFired);
|
||||
Assert(myCollection.onSetOldValue == 0);
|
||||
Assert(myCollection.onSetCompleteOldValue == 0);
|
||||
Assert(myCollection.onSetNewValue == 99);
|
||||
Assert(myCollection.onSetCompleteNewValue == 99);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
----------------------- CollectionBaseTest.cs ends --------
|
||||
|
||||
</pre>
|
||||
<ul>
|
||||
* If you use Emacs, you might want to use the .emacs
|
||||
file and the package developed by Brad Merrill
|
||||
mailto:[email protected]. It will allow you to
|
||||
highlight and indent in C# style in your Emacs
|
||||
editor. (XEmacs will still work but it'll also
|
||||
complain).
|
||||
|
||||
* CSharpDevelop is a GPLed IDE developed by IC#Code.
|
||||
Search for it at sourceforge if you are interested
|
||||
in it.
|
||||
|
||||
* For those who Java: "A comparison of Microsoft's
|
||||
C# programming language to Sun Microsystem's Java
|
||||
Programming language" by Dare Obasanjo is a really good
|
||||
(very complete) text to read.
|
||||
|
||||
* Suggest this point and more, now I can't think of
|
||||
anything more.
|
||||
</ul>
|
||||
|
||||
Enjoy!!.
|
||||
|
||||
(c) 2002, <a href="mailto:[email protected]">Jaime Anguiano Olarra</a>.
|
||||
|
||||
The parts included in this document are property of their
|
||||
respective authors.
|
||||
|
||||
Note: The identation of the source code has been changed a bit
|
||||
so it could fit better in the website. Anyway, as nothing more
|
||||
changed, the files should work as expected.
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
|
||||
* Mono PowerPC Port
|
||||
|
||||
** Status
|
||||
|
||||
It passes and compiles the same amount of mono tests as on the x86 architecture.
|
||||
|
||||
mcs is self hosting on Linux/PPC.
|
||||
|
||||
** To do
|
||||
|
||||
*** Interpreter
|
||||
|
||||
Up to date.
|
||||
|
||||
*** Jitter
|
||||
|
||||
Start the port
|
||||
|
||||
** Documentation
|
||||
|
||||
<B>PowerPC architecture:</B>
|
||||
|
||||
<A HREF="http://e-www.motorola.com/brdata/PDFDB/docs/MPCFPE32B.pdf">PowerPC Programming environments manual</A><BR>
|
||||
<A HREF="http://e-www.motorola.com/brdata/PDFDB/docs/MPC7410UM.pdf">G4 (7410) User's manual</A>
|
||||
|
||||
<B>Calling conventions:</B>
|
||||
|
||||
<add me>
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
* Open Projects
|
||||
|
||||
The .NET framework is a good first in terms of a new
|
||||
development foundation, but it falls short of providing
|
||||
higher-level components or building blocks for people to
|
||||
reuse.
|
||||
|
||||
A few ideas of projects and classes that would be useful to
|
||||
develop applications follows:
|
||||
|
||||
** EOG component
|
||||
|
||||
** XmlStorageSystem component
|
||||
|
||||
* Gtk# related projects
|
||||
|
||||
Gnome Canvas Bindings.
|
||||
|
||||
Bezier Canvas Item Binding.
|
||||
|
||||
* Graphical bindings
|
||||
|
||||
Binding for the Libart library
|
||||
|
||||
+1
-8
@@ -104,11 +104,6 @@
|
||||
There are a number of related projects to Mono:
|
||||
|
||||
<ul>
|
||||
|
||||
* <a
|
||||
href="http://qtcsharp.sourceforge.net">Qt#:</a>
|
||||
C# bindings for the Qt toolkit.
|
||||
|
||||
* <a
|
||||
href="http://www.icsharpcode.net/OpenSource/SD/default.asp">Sharp
|
||||
Develop:</a> an IDE for the C# language written in C#.
|
||||
@@ -142,13 +137,11 @@
|
||||
href="http://www.southern-storm.com.au/portable_net.html">Portable.NET:</a>
|
||||
Another implementation of the CLI and C# compiler.
|
||||
|
||||
* A Free (GFDL) tutorial on C# in Spanish with examples, slides, and extras (under development). Get it <a href="http://geneura.ugr.es/~jaime/csharp/">here</a>.
|
||||
|
||||
</ul>
|
||||
|
||||
** GNOME Documentation
|
||||
|
||||
Documentation on GNOME, and the GNOME APIs is available from
|
||||
Documnetation on GNOME, and the GNOME APIs is available from
|
||||
the <a href="http://developer.gnome.org">developer</a> site at
|
||||
GNOME:
|
||||
|
||||
|
||||
+1
-5
@@ -59,7 +59,7 @@
|
||||
Unix-like compilation environment (mostly we use GNU make in
|
||||
a few of the makefiles).
|
||||
|
||||
** JIT Engine (<b>updated, July 8th, 2002</b>)
|
||||
** JIT Engine (<b>updated, April 21, 2002</b>)
|
||||
|
||||
The JIT engine uses a code-generator generator approach for
|
||||
compilation. Given the properties of CIL byte codes, we can
|
||||
@@ -80,10 +80,6 @@
|
||||
Although compilers typically do
|
||||
constant folding, the combination of inlining with
|
||||
constant folding gives some very good results.
|
||||
|
||||
* Linear scan register allocation. In the past,
|
||||
register allocation was our achilles heel, but now
|
||||
we have left this problem behind.
|
||||
</ul>
|
||||
|
||||
There are a couple of books that deal with this technique: "A
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
* The Mono JIT engine (<b>mono</b>. The JIT engine is
|
||||
the real
|
||||
virtual machine that we support. It is
|
||||
currently functional, and we are improving its speed,
|
||||
functionaly currently, and we are improving its speed,
|
||||
and making it feature complete.
|
||||
|
||||
* A CIL bytecode interpreter (<b>mint</b>). This
|
||||
|
||||
+3
-8
@@ -9,10 +9,11 @@
|
||||
2,System,class-status-System.html,class-status-System.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,System.Xml,class-status-System.Xml.html,class-status-System.Xml.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,System.Data,class-status-System.Data.html,class-status-System.Data.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,System.Drawing,class-status-System.Drawing.html,class-status-System.Drawing.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,System.Web,class-status-System.Web.html,class-status-System.Web.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,System.Web.Services,class-status-System.Web.Services.html,class-status-System.Web.Services.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,C# Compiler,c-sharp.html,c-sharp.src
|
||||
1,Debugging,jit-debug.html,jit-debug.src
|
||||
2,Example 1,jit-debug-sample.html,jit-debug-sample.src
|
||||
2,Example 2,jit-debug-sample2.html,jit-debug-sample2.src
|
||||
1,Status,status.html,status.src
|
||||
0,Download,download.html,download.src
|
||||
1,CVS access,ccvs.html,ccvs.src
|
||||
@@ -24,22 +25,16 @@
|
||||
1,Test Suite,testing.html,testing.src
|
||||
1,Tools,tools.html,tools.src
|
||||
1,Porting,porting.html,porting.src
|
||||
2,PowerPC,ppc.html,ppc.src
|
||||
1,HOWTO,mono-contribution-howto.html,mono-contribution-howto.src
|
||||
0,Plans,plans.html,plans.src
|
||||
1,ADO.NET,ado-net.html,ado-net.src
|
||||
1,ASP.NET,asp-net.html,asp-net.src
|
||||
1,Java,java.html,java.src
|
||||
1,Windows.Forms,winforms.html,winforms.src
|
||||
0,Resources,resources.html,resources.src
|
||||
1,Beginning,mono-beginning.html,mono-beginning.src
|
||||
1,Mailing Lists,mailing-lists.html,mailing-lists.src
|
||||
1,Ideas,ideas.html,ideas.src
|
||||
1,Passport,passport.html,passport.src
|
||||
1,Books,books.html,books.src
|
||||
1,Papers,papers.html,papers.src
|
||||
1,Languages,languages.html,languages.src
|
||||
1,Debugging,jit-debug.html,jit-debug.src
|
||||
2,Example 1,jit-debug-sample.html,jit-debug-sample.src
|
||||
2,Example 2,jit-debug-sample2.html,jit-debug-sample2.src
|
||||
0,Contact,contact.html,contact.src
|
||||
@@ -15,11 +15,6 @@ while (<>){
|
||||
print "<p>\n";
|
||||
} elsif (/^\t\t\* (.*)$/) {
|
||||
print "<li>$1\n";
|
||||
} elsif (/^\@item (.*)$/){
|
||||
$name = $link = $1;
|
||||
$link =~ s/ //g;
|
||||
print "<a name=\"$link\">\n";
|
||||
print "<h2>$name</h2>\n";
|
||||
} elsif (/^Q: (.*)$/){
|
||||
print "<p><a name=\"q$q\"></a><b>Question $q:</b> $1\n";
|
||||
$q++;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 429 B |
+40
-70
@@ -1,55 +1,47 @@
|
||||
CSCRIPT = $(SYSTEMROOT)/system32/cscript.exe
|
||||
CSC=csc
|
||||
|
||||
CORCOMPARE=../../../mcs/tools/corcompare
|
||||
|
||||
OBJECTS= \
|
||||
deploy/ado-net.html \
|
||||
deploy/anoncvs.html \
|
||||
deploy/asp-net.html \
|
||||
deploy/books.html \
|
||||
deploy/contributing.html \
|
||||
deploy/class-status.html \
|
||||
deploy/class-status-corlib.html \
|
||||
deploy/class-status-System.html \
|
||||
deploy/class-status-System.Xml.html \
|
||||
deploy/class-status-System.Drawing.html \
|
||||
deploy/class-status-System.Data.html \
|
||||
deploy/class-status-System.Web.html \
|
||||
deploy/class-status-System.Web.Services.html \
|
||||
deploy/class-library.html \
|
||||
deploy/classlib-doc.html \
|
||||
deploy/contact.html \
|
||||
deploy/c-sharp.html \
|
||||
deploy/ccvs.html \
|
||||
deploy/documentation.html \
|
||||
deploy/download.html \
|
||||
deploy/faq.html \
|
||||
deploy/gcc-frontend.html \
|
||||
deploy/index.html \
|
||||
deploy/ideas.html \
|
||||
deploy/java.html \
|
||||
deploy/jit-debug.html \
|
||||
deploy/jit-debug-sample.html \
|
||||
deploy/jit-debug-sample2.html \
|
||||
deploy/languages.html \
|
||||
deploy/mailing-lists.html \
|
||||
deploy/mono-beginning.html \
|
||||
deploy/mono-beginning-xml.html \
|
||||
deploy/mono-contribution-howto.html \
|
||||
deploy/monodoc-xml.html \
|
||||
deploy/papers.html \
|
||||
deploy/passport.html \
|
||||
deploy/plans.html \
|
||||
deploy/porting.html \
|
||||
deploy/ppc.html \
|
||||
deploy/rationale.html \
|
||||
deploy/resources.html \
|
||||
deploy/roadmap.html \
|
||||
deploy/runtime.html \
|
||||
deploy/status.html \
|
||||
deploy/testing.html \
|
||||
deploy/tools.html \
|
||||
deploy/ado-net.html \
|
||||
deploy/anoncvs.html \
|
||||
deploy/asp-net.html \
|
||||
deploy/books.html \
|
||||
deploy/contributing.html \
|
||||
deploy/class-status.html \
|
||||
deploy/class-status-corlib.html \
|
||||
deploy/class-status-System.Xml.html \
|
||||
deploy/class-status-System.Data.html \
|
||||
deploy/class-status-System.Web.html \
|
||||
deploy/class-library.html \
|
||||
deploy/classlib-doc.html \
|
||||
deploy/contact.html \
|
||||
deploy/c-sharp.html \
|
||||
deploy/ccvs.html \
|
||||
deploy/documentation.html \
|
||||
deploy/download.html \
|
||||
deploy/faq.html \
|
||||
deploy/gcc-frontend.html \
|
||||
deploy/index.html \
|
||||
deploy/ideas.html \
|
||||
deploy/java.html \
|
||||
deploy/jit-debug.html \
|
||||
deploy/jit-debug-sample.html \
|
||||
deploy/jit-debug-sample2.html \
|
||||
deploy/languages.html \
|
||||
deploy/mailing-lists.html \
|
||||
deploy/monodoc-xml.html \
|
||||
deploy/papers.html \
|
||||
deploy/passport.html \
|
||||
deploy/plans.html \
|
||||
deploy/porting.html \
|
||||
deploy/rationale.html \
|
||||
deploy/resources.html \
|
||||
deploy/roadmap.html \
|
||||
deploy/runtime.html \
|
||||
deploy/status.html \
|
||||
deploy/testing.html \
|
||||
deploy/tools.html \
|
||||
deploy/winforms.html
|
||||
|
||||
# deploy/class-status-System.html \
|
||||
@@ -59,28 +51,9 @@ NON_HTML_SOURCES= \
|
||||
../mono-build-w32.sh
|
||||
|
||||
|
||||
all: $(OBJECTS) deploy/index.rss
|
||||
all: $(OBJECTS)
|
||||
perl process.pl commands template.html.in deploy
|
||||
|
||||
tutorial: mono-beginning.html.stamp mono-beginning.pdf
|
||||
cp -a mono-beginning mono-beginning.xml mono-beginning.pdf deploy
|
||||
|
||||
mono-beginning.html.stamp: mono-beginning.xml
|
||||
db2html mono-beginning.xml
|
||||
touch mono-beginning.html.stamp
|
||||
|
||||
mono-beginning.pdf: mono-beginning.xml
|
||||
db2pdf mono-beginning.xml
|
||||
|
||||
mono-beginning.xml: ../mono-beginning.xml
|
||||
cp ../mono-beginning.xml .
|
||||
|
||||
deploy/index.rss: mono-rss.exe ../index
|
||||
./mono-rss.exe ../index deploy/index.rss
|
||||
|
||||
mono-rss.exe: mono-rss.cs rss.cs
|
||||
$(CSC) mono-rss.cs rss.cs
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS) $(patsubst deploy/%.html,src/%.src, $(OBJECTS)) src/*.xml src/*.html.in ../class-status-* ../class-status
|
||||
|
||||
@@ -125,6 +98,3 @@ src/corlib.xml: ../../../mcs/class/lib/corlib_cmp.dll $(CORCOMPARE)/CorCompare.e
|
||||
|
||||
../class-status: ../class-status.in
|
||||
cp -f $< $@
|
||||
|
||||
make-rss:
|
||||
$(CSC) make-rss.cs -o
|
||||
@@ -1,103 +0,0 @@
|
||||
//
|
||||
// Generates the Mono RSS feed
|
||||
//
|
||||
// Miguel de Icaza
|
||||
//
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
using RSS;
|
||||
|
||||
class X {
|
||||
static RSS.RSS rss;
|
||||
static Channel c;
|
||||
static int item_count;
|
||||
|
||||
static void PopulateRSS (StreamReader input)
|
||||
{
|
||||
string s;
|
||||
|
||||
while ((s = input.ReadLine ()) != null){
|
||||
if (s.StartsWith ("@item "))
|
||||
break;
|
||||
}
|
||||
|
||||
if (s == null || !s.StartsWith ("@item ")){
|
||||
Console.WriteLine ("Could not find beginning of text to RSS");
|
||||
return;
|
||||
}
|
||||
|
||||
Item i = null;
|
||||
string description = "";
|
||||
do {
|
||||
if (s.StartsWith ("@item ")){
|
||||
if (item_count++ > 25)
|
||||
break;
|
||||
|
||||
if (i != null){
|
||||
i.Description = description;
|
||||
description = "";
|
||||
}
|
||||
|
||||
string title = s.Substring (6);
|
||||
string link = "http://www.go-mono.com/index.html#";
|
||||
foreach (char ch in title){
|
||||
if (ch != ' ')
|
||||
link += ch;
|
||||
}
|
||||
|
||||
i = c.NewItem ();
|
||||
i.Title = title;
|
||||
i.Link = link;
|
||||
} else {
|
||||
description += "\n" + (s == "\n" ? "<p>" : s);
|
||||
}
|
||||
} while ((s = input.ReadLine ()) != null);
|
||||
|
||||
if (i != null){
|
||||
i.Description = description;
|
||||
}
|
||||
}
|
||||
|
||||
static void MakeRSS (string input, string output)
|
||||
{
|
||||
rss = new RSS.RSS ();
|
||||
c = rss.NewChannel ("Mono Project News", "http://www.go-mono.com");
|
||||
|
||||
c.Title = "Mono Project News";
|
||||
c.Link = "http://www.go-mono.com";
|
||||
c.Description =
|
||||
"News from the Mono project: a portable implementation of the .NET Framework";
|
||||
c.WebMaster = "[email protected]";
|
||||
c.ManagingEditor = "[email protected]";
|
||||
string t = File.GetLastWriteTime (input).ToString ("r");
|
||||
c.PubDate = t;
|
||||
c.LastBuildDate = t;
|
||||
|
||||
using (FileStream fs = new FileStream (input, FileMode.Open)){
|
||||
using (StreamReader input_stream = new StreamReader (fs)){
|
||||
PopulateRSS (input_stream);
|
||||
}
|
||||
}
|
||||
|
||||
rss.XmlDocument.Save (output);
|
||||
}
|
||||
|
||||
static int Main (string [] args)
|
||||
{
|
||||
switch (args.Length){
|
||||
case 0:
|
||||
MakeRSS ("index", "index.rss");
|
||||
break;
|
||||
case 2:
|
||||
MakeRSS (args [0], args [1]);
|
||||
break;
|
||||
|
||||
default:
|
||||
Console.WriteLine ("Usage is: mono-rss [input output.rss]");
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
-262
@@ -1,262 +0,0 @@
|
||||
//
|
||||
// RSS.cs: Some utility classes to generate RSS feeds
|
||||
//
|
||||
// (C) 2002 Miguel de Icaza ([email protected])
|
||||
//
|
||||
//
|
||||
using System;
|
||||
using System.Xml;
|
||||
using System.IO;
|
||||
|
||||
namespace RSS {
|
||||
|
||||
public class Item {
|
||||
XmlDocument doc;
|
||||
XmlNode item;
|
||||
XmlText title, link, description;
|
||||
|
||||
public Item (XmlDocument doc, XmlNode item)
|
||||
{
|
||||
this.doc = doc;
|
||||
this.item = item;
|
||||
}
|
||||
|
||||
XmlText MakeTextElement (string name)
|
||||
{
|
||||
XmlNode node = doc.CreateElement (name);
|
||||
XmlText text = doc.CreateTextNode ("");
|
||||
|
||||
item.AppendChild (node);
|
||||
node.AppendChild (text);
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
public string Title {
|
||||
get {
|
||||
if (title == null)
|
||||
return null;
|
||||
|
||||
return title.Value;
|
||||
}
|
||||
|
||||
set {
|
||||
if (title == null)
|
||||
title = MakeTextElement ("title");
|
||||
title.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string Link {
|
||||
get {
|
||||
if (link == null)
|
||||
return null;
|
||||
|
||||
return link.Value;
|
||||
}
|
||||
|
||||
set {
|
||||
if (link == null)
|
||||
link = MakeTextElement ("link");
|
||||
link.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string Description {
|
||||
get {
|
||||
if (description == null)
|
||||
return null;
|
||||
|
||||
return description.Value;
|
||||
}
|
||||
|
||||
set {
|
||||
if (description == null)
|
||||
description = MakeTextElement ("description");
|
||||
description.Value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class Channel {
|
||||
XmlDocument doc;
|
||||
XmlNode channel;
|
||||
XmlText title, link, description, language, pubDate, lastBuildDate;
|
||||
XmlText managingEditor, webMaster;
|
||||
|
||||
XmlText MakeTextElement (string name)
|
||||
{
|
||||
XmlNode node = doc.CreateElement (name);
|
||||
XmlText text = doc.CreateTextNode ("");
|
||||
|
||||
channel.AppendChild (node);
|
||||
node.AppendChild (text);
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
public Channel (XmlDocument doc, XmlNode node)
|
||||
{
|
||||
this.channel = node;
|
||||
this.doc = doc;
|
||||
|
||||
title = MakeTextElement ("title");
|
||||
link = MakeTextElement ("link");
|
||||
description = MakeTextElement ("description");
|
||||
}
|
||||
|
||||
public Item NewItem ()
|
||||
{
|
||||
XmlNode node = doc.CreateElement ("item");
|
||||
Item item;
|
||||
|
||||
channel.AppendChild (node);
|
||||
item = new Item (doc, node);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
public string Title {
|
||||
get {
|
||||
return title.Value;
|
||||
}
|
||||
|
||||
set {
|
||||
title.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string Link {
|
||||
get {
|
||||
return link.Value;
|
||||
}
|
||||
|
||||
set {
|
||||
link.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string Description {
|
||||
get {
|
||||
return description.Value;
|
||||
}
|
||||
|
||||
set {
|
||||
description.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Optional Values
|
||||
public string ManagingEditor {
|
||||
get {
|
||||
if (managingEditor == null)
|
||||
return null;
|
||||
|
||||
return managingEditor.Value;
|
||||
}
|
||||
|
||||
set {
|
||||
if (managingEditor == null)
|
||||
managingEditor = MakeTextElement ("managingEditor");
|
||||
|
||||
managingEditor.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string WebMaster {
|
||||
get {
|
||||
if (webMaster == null)
|
||||
return null;
|
||||
|
||||
return webMaster.Value;
|
||||
}
|
||||
|
||||
set {
|
||||
if (webMaster == null)
|
||||
webMaster = MakeTextElement ("webMaster");
|
||||
webMaster.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string PubDate {
|
||||
get {
|
||||
if (pubDate == null)
|
||||
return null;
|
||||
|
||||
return pubDate.Value;
|
||||
}
|
||||
|
||||
set {
|
||||
if (pubDate == null)
|
||||
pubDate = MakeTextElement ("pubDate");
|
||||
pubDate.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string LastBuildDate {
|
||||
get {
|
||||
if (lastBuildDate == null)
|
||||
return null;
|
||||
|
||||
return lastBuildDate.Value;
|
||||
}
|
||||
|
||||
set {
|
||||
if (lastBuildDate == null)
|
||||
lastBuildDate = MakeTextElement ("lastBuildDate");
|
||||
lastBuildDate.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string Language {
|
||||
get {
|
||||
if (language == null)
|
||||
return null;
|
||||
|
||||
return language.Value;
|
||||
}
|
||||
|
||||
set {
|
||||
if (language == null)
|
||||
language = MakeTextElement ("language");
|
||||
language.Value = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
class RSS {
|
||||
XmlDocument doc;
|
||||
XmlNode rss;
|
||||
|
||||
const string rss_base =
|
||||
"<?xml version=\"1.0\"?> <rss version=\"0.92\"></rss>";
|
||||
|
||||
public RSS ()
|
||||
{
|
||||
doc = new XmlDocument ();
|
||||
|
||||
doc.LoadXml (rss_base);
|
||||
rss = doc.DocumentElement;
|
||||
}
|
||||
|
||||
public Channel NewChannel (string title, string url)
|
||||
{
|
||||
XmlNode node = doc.CreateElement ("channel");
|
||||
Channel c;
|
||||
|
||||
rss.AppendChild (node);
|
||||
c = new Channel (doc, node);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
public XmlDocument XmlDocument {
|
||||
get {
|
||||
return doc;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+21
-27
@@ -1,4 +1,3 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>#TITLE#</title>
|
||||
@@ -36,28 +35,25 @@
|
||||
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td><img src="images/pixel.gif" alt=""></td><!-- left border -->
|
||||
<td><img src="images/pixel.gif"></td><!-- left border -->
|
||||
<td colspan="4">
|
||||
<a href="http://www.go-mono.com"><img src="images/mono.gif"
|
||||
alt="mono-logo" border="0"></a></td>
|
||||
<td><img src="images/pixel.gif" alt=""></td><!-- right border -->
|
||||
<a href="http://www.go-mono.com"><img src="images/mono.gif" border="0"></a></td>
|
||||
<td><img src="images/pixel.gif"></td><!-- right border -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="images/pixel.gif" width="1" height="1" alt=""></td>
|
||||
<td colspan="3" bgcolor="black"><img src="images/pixel.gif"
|
||||
height="2" alt=""></td>
|
||||
<td bgcolor="black"><img src="images/pixel.gif" width="1" alt=""></td>
|
||||
<td><img src="images/pixel.gif" alt=""></td>
|
||||
<td><img src="images/pixel.gif" width="1" height="1"></td>
|
||||
<td colspan="3" bgcolor="black"><img src="images/pixel.gif" height="2"></td>
|
||||
<td bgcolor="black"><img src="images/pixel.gif" width="1"></td>
|
||||
<td><img src="images/pixel.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="100"><img src="images/pixel.gif" alt=""></td>
|
||||
<td width="100"><img src="images/pixel.gif"></td>
|
||||
<td valign="top">
|
||||
<table cellpadding="2" valign="top" cellspacing="0" border="0">
|
||||
#MENU#
|
||||
</table>
|
||||
</td>
|
||||
<td bgcolor="black" width="1"><img src="images/pixel.gif"
|
||||
width="1" alt=""></td>
|
||||
<td bgcolor="black" width="1"><img src="images/pixel.gif" width="1"></td>
|
||||
<td bgcolor="white" align="left" width="80%" valign="top">
|
||||
<table cellpadding="16">
|
||||
<tr><td>
|
||||
@@ -65,26 +61,24 @@
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td bgcolor="black"><img src="images/pixel.gif" width="1" alt=""></td>
|
||||
<td width="100"><img src="images/pixel.gif" alt=""></td>
|
||||
<td bgcolor="black"><img src="images/pixel.gif" width="1"></td>
|
||||
<td width="100"><img src="images/pixel.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<img src="images/pixel.gif" alt=""></td>
|
||||
<td colspan="2" bgcolor="black"><img src="images/pixel.gif"
|
||||
height="1" alt=""></td>
|
||||
<td bgcolor="black"><img src="images/pixel.gif" width="1" alt=""></td>
|
||||
<td><img src="images/pixel.gif" alt=""></td>
|
||||
<img src="images/pixel.gif"></td>
|
||||
<td colspan="2" bgcolor="black"><img src="images/pixel.gif" height="1"></td>
|
||||
<td bgcolor="black"><img src="images/pixel.gif" width="1"></td>
|
||||
<td><img src="images/pixel.gif"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
<td colspan="2" align="center">
|
||||
<a class="footnote" href="mailto:[email protected]">[email protected]</a>
|
||||
</td>
|
||||
<td colspan="2"></td>
|
||||
<td colspan="2"></td>
|
||||
<td colspan="2" align="center">
|
||||
<a class="footnote" href="mailto: [email protected]">[email protected]</a>
|
||||
</td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
+1
-1
@@ -16,7 +16,7 @@ unmanaged code. That way we can recover from exceptions inside unmanaged code.
|
||||
|
||||
void handle_exception ((struct sigcontext *ctx, gpointer obj)
|
||||
{
|
||||
if (ctx->bp < mono_end_of_stack) {
|
||||
if (ctx->ip < mono_end_of_stack) {
|
||||
/* unhandled exception */
|
||||
abort ();
|
||||
}
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
Register Allocation
|
||||
===================
|
||||
|
||||
The current JIT implementation uses a tree matcher to generate code. We use a
|
||||
simple algorithm to allocate registers in trees, and limit the number of used
|
||||
temporary register to 4 when evaluating trees. So we can use 2 registers for
|
||||
global register allocation.
|
||||
|
||||
Register Allocation for Trees
|
||||
=============================
|
||||
|
||||
We always evaluate trees from left to right. When there are no more registers
|
||||
available we need to spill values to memory. Here is the simplified algorithm.
|
||||
|
||||
gboolean
|
||||
tree_allocate_regs (tree, exclude_reg)
|
||||
{
|
||||
if (!tree_allocate_regs (tree->left, -1))
|
||||
return FALSE;
|
||||
|
||||
if (!tree_allocate_regs (tree->right, -1)) {
|
||||
|
||||
tree->left->spilled == TRUE;
|
||||
|
||||
free_used_regs (tree->left);
|
||||
|
||||
if (!tree_allocate_regs (tree->right, tree->left->reg))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
free_used_regs (tree->left);
|
||||
free_used_regs (tree->right);
|
||||
|
||||
/* try to allocate a register (reg != exclude_reg) */
|
||||
if ((tree->reg = next_free_reg (exclude_reg)) != -1)
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
The emit routing actually spills the registers:
|
||||
|
||||
tree_emit (tree)
|
||||
{
|
||||
|
||||
tree_emit (tree->left);
|
||||
|
||||
if (tree->left->spilled)
|
||||
save_reg (tree->left->reg);
|
||||
|
||||
tree_emit (tree->right);
|
||||
|
||||
if (tree->left->spilled)
|
||||
restore_reg (tree->left->reg);
|
||||
|
||||
|
||||
emit_code (tree);
|
||||
}
|
||||
|
||||
|
||||
Global Register Allocation
|
||||
==========================
|
||||
|
||||
TODO.
|
||||
+1
-1
@@ -50,7 +50,7 @@ LDC.1 (5,1) [5,0]
|
||||
STLOC.0 (5) [1,0]
|
||||
STLOC.1 () [1,5]
|
||||
|
||||
A simple forest generation generates:
|
||||
The current forest generation generates:
|
||||
|
||||
STLOC.0(LDC.1)
|
||||
STLOC.1(LDLOC.0)
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
=pod
|
||||
|
||||
=head1 Internal design document for the mono_handle_d
|
||||
|
||||
This document is designed to hold the design of the mono_handle_d and
|
||||
not as an api reference.
|
||||
|
||||
=head2 Primary goal and purpose
|
||||
|
||||
The mono_handle_d is a process which takes care of the (de)allocation
|
||||
of scratch shared memory and handles (of files, threads, mutexes,
|
||||
sockets etc. see L<WapiHandleType>) and refcounts of the
|
||||
filehandles. It is designed to be run by a user and to be fast, thus
|
||||
minimal error checking on input is done and will most likely crash if
|
||||
given a faulty package. No effort has been, or should be, made to have
|
||||
the daemon talking to machine of different endianness/size of int.
|
||||
|
||||
=head2 How to start the daemon
|
||||
|
||||
To start the daemon you either run the mono_handle_d executable or try
|
||||
to attach to the shared memory segment via L<_wapi_shm_attach> which
|
||||
will start a daemon if one does not exist.
|
||||
|
||||
=head1 Internal details
|
||||
|
||||
The daemon works by opening a socket and listening to clients. These
|
||||
clients send packages over the socket complying to L<struct
|
||||
WapiHandleRequest>.
|
||||
|
||||
=head2 Possible requests
|
||||
|
||||
=over
|
||||
|
||||
=item WapiHandleRequest_New
|
||||
|
||||
Find a handle in the shared memory segment that is free and allocate
|
||||
it to the specified type. To destroy use
|
||||
L</WapiHandleRequest_Close>. A L<WapiHandleResponse> with
|
||||
.type=WapiHandleResponseType_New will be sent back with .u.new.handle
|
||||
set to the handle that was allocated. .u.new.type is the type that was
|
||||
requested.
|
||||
|
||||
=item WapiHandleRequestType_Open
|
||||
|
||||
Increase the ref count of an already created handle. A
|
||||
L<WapiHandleResponse> with .type=WapiHandleResponseType_Open will be sent
|
||||
back with .u.new.handle set to the handle, .u.new.type is set to the
|
||||
type of handle this is.
|
||||
|
||||
=item WapiHandleRequestType_Close
|
||||
|
||||
Decrease the ref count of an already created handle. A
|
||||
L<WapiHandleResponse> with .type=WapiHandleResponseType_Close will be
|
||||
sent back with .u.close.destroy set to TRUE if ref count for this
|
||||
client reached 0.
|
||||
|
||||
=item WapiHandleRequestType_Scratch
|
||||
|
||||
Allocate a shared memory area of size .u.scratch.length in bytes. A
|
||||
L<WapiHandleResponse> with .type=WapiHandleResponseType_Scratch will be
|
||||
sent back with .u.scratch.idx set to the index into the shared
|
||||
memory's scratch area where to memory begins. (works just like
|
||||
malloc(3))
|
||||
|
||||
=item WapiHandleRequestType_Scratch
|
||||
|
||||
Deallocate a shared memory area, this must have been allocated before
|
||||
deallocating. A L<WapiHandleResponse> with
|
||||
.type=WapiHandleResponseType_ScratchFree will be sent back (works just
|
||||
like free(3))
|
||||
|
||||
=back
|
||||
|
||||
=head1 Why a daemon
|
||||
|
||||
From an email:
|
||||
|
||||
Dennis: I just have one question about the daemon... Why does it
|
||||
exist? Isn't it better performancewise to just protect the shared area
|
||||
with a mutex when allocation a new handle/shared mem segment or
|
||||
changing refcnt? It will however be a less resilient to clients that
|
||||
crash (the deamon cleans up ref'd handles if socket closes)
|
||||
|
||||
Dick: It's precisely because with a mutex the shared memory segment
|
||||
can be left in a locked state. Also, it's not so easy to clean up
|
||||
shared memory without it (you can't just mark it deleted when creating
|
||||
it, because you can't attach any more readers to the same segment
|
||||
after that). I did some minimal performance testing, and I don't
|
||||
think the daemon is particularly slow.
|
||||
|
||||
|
||||
=head1 Authors
|
||||
|
||||
Documentaion: Dennis Haney
|
||||
|
||||
Implementation: Dick Porter
|
||||
|
||||
=cut
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
man_MANS = mcs.1 mono.1 monostyle.1 mono-config.5
|
||||
man_MANS = mcs.1 mono.1 monostyle.1
|
||||
|
||||
EXTRA_DIST = $(man_MANS)
|
||||
|
||||
@@ -75,9 +75,6 @@ Used for benchmarking. The compiler will only parse its input files.
|
||||
.I \-\-probe X L
|
||||
Probes for the code to generate an error named `X' in line `L'. This
|
||||
is only used by the test suite.
|
||||
.TP
|
||||
.I /linkres:RESOURCE
|
||||
Links to the given resources
|
||||
.TP
|
||||
.I \-\-recurse PATTERN
|
||||
Does recursive compilation using the specified pattern. In Unix the
|
||||
@@ -87,8 +84,8 @@ shell will perform globbing, so you migth want to use it like this:
|
||||
bash$ mcs --recurse '*.cs'
|
||||
.fi
|
||||
.TP
|
||||
.I \-\-linkres FILE
|
||||
Links FILE as a resource of the resulting assembly.
|
||||
.I \-\-resource FILE
|
||||
Adds FILE as a resource of the resulting assembly.
|
||||
.TP
|
||||
.I \-\-target KIND
|
||||
Used to specify the desired target. The possible values are: exe,
|
||||
@@ -121,30 +118,6 @@ Debugging. Turns on verbose yacc parsing.
|
||||
Use this to stop option parsing, and allow option-looking parameters
|
||||
to be passed on the command line.
|
||||
.PP
|
||||
.SH SPECIAL DEFINES
|
||||
The
|
||||
.B TRACE
|
||||
and
|
||||
.B DEBUG
|
||||
defines have a special meaning to the compiler.
|
||||
.PP
|
||||
By default calls to methods and properties in the
|
||||
System.Diagnostics.Trace class are not generated unless the TRACE
|
||||
symbol is defined (either through a "#define TRACE") in your source
|
||||
code, or by using the
|
||||
.I "--define TRACE"
|
||||
in the command line.
|
||||
.PP
|
||||
By default calls to methods and properties in the
|
||||
System.Diagnostics.Debug class are not generated unless the DEBUG
|
||||
symbol is defined (either through a "#define DEBUG") in your source
|
||||
code, or by using the
|
||||
.I "--define DEBUG"
|
||||
in the command line.
|
||||
.PP
|
||||
Note that the effect of defining TRACE and DEBUG is a global setting,
|
||||
even if they are only defined in a single file.
|
||||
.PP
|
||||
.SH DEBUGGING SUPPORT
|
||||
When use the "--debug" or "-g" flag, MCS will create an assembler file
|
||||
FILE-debug.s containing debugging information where FILE is the name of
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
.\"
|
||||
.\" mono configuration page.
|
||||
.\" (C) Ximian, Inc.
|
||||
.\" Author:
|
||||
.\" Miguel de Icaza ([email protected])
|
||||
.\"
|
||||
.TH Mono "Mono 1.0"
|
||||
.SH NAME
|
||||
mono-config \- Mono runtime file format configuration
|
||||
.SH DESCRIPTION
|
||||
The Mono runtime will load configuration data from the
|
||||
installation prefix /etc/mono/config file, the ~/.mono/config or from
|
||||
the file pointed by the MONO_CONFIG environment variable.
|
||||
.PP
|
||||
This file controls the behavior of the runtime.
|
||||
.PP
|
||||
The file contains an XML-like file with various sections, all of them
|
||||
contained inside a
|
||||
.B<configuration>
|
||||
section (It actually uses GMarkup
|
||||
to parse the file).
|
||||
.SH <dllmap> directive
|
||||
You use the dllmap directive to map shared libraries referenced by
|
||||
P/Invoke in your assemblies to a different shared library.
|
||||
.PP
|
||||
This is typically used to map Windows libraries to Unix library names.
|
||||
.SH EXAMPLES
|
||||
The following example maps references to the `cygwin1.dll' shared
|
||||
library to the `libc.so.6' file.
|
||||
.nf
|
||||
<configuration>
|
||||
<dllmap dll="cygwin1.dll" target="libc.so.6"/>
|
||||
</configuration>
|
||||
.fi
|
||||
.SH SEE ALSO
|
||||
.BR mono(1), monodis(1), mint(1)
|
||||
+21
-91
@@ -1,5 +1,5 @@
|
||||
.\"
|
||||
.\" mono manual page.
|
||||
.\" mint manual page.
|
||||
.\" (C) Ximian, Inc.
|
||||
.\" Author:
|
||||
.\" Miguel de Icaza ([email protected])
|
||||
@@ -11,9 +11,7 @@ mono \- Mono ECMA-CLI Just in Time compiler.
|
||||
.PP
|
||||
.B mono
|
||||
[\-\-help] [\-d] [\-\-debug-asm] [\-\-debug-forest] [\-\-trace-calls]
|
||||
[\-\-compile name] [\-\-ncompile num] [\-\-noinline] [\-\-profile]
|
||||
[\-\-debug=[format]] [\-\-debug-args args] [\-\-break name] [\-\-precompile name]
|
||||
[\-\-config filename]
|
||||
[\-\-stabs] [\-\-compile cname] [\-\-ncompile num] [\-\-debug] [\-\-noinline] [\-\-profile]
|
||||
program.exe [arguments...]
|
||||
.SH DESCRIPTION
|
||||
The \fImono\fP program is a Just in Time compiler for ECMA CLI byte
|
||||
@@ -34,14 +32,6 @@ to sharing code. This results in slower code, but enables code
|
||||
sharing across application domains. The default is to maximize for
|
||||
speed, but disallow JITed code sharing across domains. See
|
||||
System.LoaderOptimization for more information
|
||||
.TP
|
||||
.I "--config filename"
|
||||
Load the specified configuration file instead of the default one(s).
|
||||
The default files are /etc/mono/config and ~/.mono/config or the file
|
||||
specified in the MONO_CONFIG environment variable, if set.
|
||||
.TP
|
||||
.I "--noinline"
|
||||
Disables the code inliner.
|
||||
.SH DEBUGGING OPTIONS
|
||||
The following options are used to debug, or perfomance test the JIT
|
||||
compiler:
|
||||
@@ -56,100 +46,40 @@ Displays the generated code as methods are invoked.
|
||||
Displays the basic blocks and the forest of trees that is
|
||||
created from a stream of CIL opcodes.
|
||||
.TP
|
||||
.I "--compile name"
|
||||
Compiles the method on the given class (namespace.name:methodname) or
|
||||
all classes in the given image (@imagename).
|
||||
.I "--stabs"
|
||||
Writes out stabs debug information
|
||||
.TP
|
||||
.I "--ncompile"
|
||||
Compiles the method a number of times. If no argument is specified,
|
||||
the method will be compiled a thousand times.
|
||||
.SH DEVELOPMENT OPTIONS
|
||||
The following options are used to debug a JITed application. They're
|
||||
only useful when running the JIT in a debugger:
|
||||
.I "--dwarf"
|
||||
Writes out dwarf debug information
|
||||
.TP
|
||||
.I "--debug=[format]"
|
||||
Writes out debug information in the given format or in the default format.
|
||||
See DEBUGGING FORMATS for details.
|
||||
.TP
|
||||
.I "--debug-args args"
|
||||
Comma-separated list of additional arguments for the symbol writer.
|
||||
See DEBUGGING FORMATS for details.
|
||||
.TP
|
||||
.I "--break method"
|
||||
Inserts a breakpoint before the method whose name is `method'
|
||||
(namespace.class:methodname).
|
||||
.TP
|
||||
.I "--precompile name"
|
||||
Compiles the given class (namespace.name), method (namespace.name:methodname)
|
||||
or all classes in the given image (@imagename) before executing the main
|
||||
application.
|
||||
.TP
|
||||
.I "--profile"
|
||||
Collect profiling information and dump it at the end of the process.
|
||||
.SH DEBUGGING FORMATS
|
||||
The following debugging formats are currently supported:
|
||||
.TP
|
||||
.I "stabs"
|
||||
Writes out stabs debug information.
|
||||
.TP
|
||||
.I "dwarf"
|
||||
Writes out dwarf debug information.
|
||||
.TP
|
||||
.I "dwarf-plus"
|
||||
.I "--dwarf-plus"
|
||||
Uses an extended debugging information file which has been generated
|
||||
by MCS. This extended debugging information will allow you to debug
|
||||
C# source code rather than IL code. To use it, just run the JIT in
|
||||
your debugger and call "mono_debug_make_symbols" each time the program
|
||||
stops.
|
||||
.PP
|
||||
The "stabs" and "dwarf" formats support the following options:
|
||||
.TP
|
||||
.I "filename=FILENAME"
|
||||
Write debugging information into FILENAME. This file must be run through
|
||||
the assembler to create an object file.
|
||||
.I "--debug method"
|
||||
Debugs the method whose name is `method'
|
||||
.TP
|
||||
.I "objfile=FILENAME"
|
||||
When automatically assembling the symbol file, write the resulting object
|
||||
file into FILENAME.
|
||||
.I "--compile"
|
||||
Compiles the method on the given class (namespace.name:methodname).
|
||||
.TP
|
||||
.I "dont_assemble"
|
||||
Normally, the symbol file is automatically assembled to an object file
|
||||
when you call "mono_debug_make_symbols". Use this option to disable this
|
||||
behaviour.
|
||||
.I "--ncompile"
|
||||
Compiles the method a number of times. If no argument is specified,
|
||||
the method will be compiled a thousand times.
|
||||
.TP
|
||||
.I "install_il_files"
|
||||
Put the generated *.il files in the same directory than the assembly they
|
||||
came from. The default is to put them into the current working directory.
|
||||
.I "--noinline"
|
||||
Disables the code inliner.
|
||||
.TP
|
||||
.I "dont_update_il_files"
|
||||
Normally, the *.il files are recreated if their assemblies have changed
|
||||
when you call "mono_debug_make_symbols". Use this option to disable this
|
||||
behaviour.
|
||||
.TP
|
||||
.I "dont_create_il_files"
|
||||
Update the *.il files if their assemblies have changed, but only if the
|
||||
file already exists.
|
||||
.PP
|
||||
The "dwarf-plus" format supports the following options:
|
||||
.TP
|
||||
.I "dont_fallback"
|
||||
Don't fallback to normal dwarf2 if the symbol file cannot be found.
|
||||
.PP
|
||||
.I "--profile"
|
||||
Collect profiling information and dump it at the end of the process.
|
||||
.SH FILES
|
||||
On Unix assemblies are loaded from the installation lib directory. If you set
|
||||
`prefix' to /usr, the assemblies will be located in /usr/lib. On
|
||||
Windows, the assemblies are loaded from the directory where mono and
|
||||
mint live.
|
||||
.PP
|
||||
/etc/mono/config, ~/.mono/config
|
||||
.IP
|
||||
Mono runtime configuration file. See the mono-config(5) manual page
|
||||
for more information.
|
||||
Assemblies are lodaed from the installation lib directory. If you set
|
||||
`prefix' to /usr, the assemblies will be located in /usr/lib.
|
||||
.SH MAILING LISTS
|
||||
Visit http://mail.ximian.com/mailman/mono-list for details.
|
||||
.SH WEB SITE
|
||||
Visit: http://www.go-mono.com for details
|
||||
.SH SEE ALSO
|
||||
.BR mcs(1), mint(1), monodis(1), mono-config(5)
|
||||
|
||||
|
||||
.BR mint(1), monodis(1)
|
||||
@@ -1,6 +1,5 @@
|
||||
C# Compiler:
|
||||
Miguel de Icaza ([email protected])
|
||||
Ravi Pratap ([email protected])
|
||||
|
||||
Class Libraries:
|
||||
Patrik Torstensson <[email protected]>
|
||||
@@ -13,4 +12,3 @@ Class Libraries:
|
||||
Garrett Rooney ([email protected])
|
||||
Bob Smith ([email protected])
|
||||
John Barnette ([email protected])
|
||||
Daniel Morgan <[email protected]>
|
||||
+1
-51
@@ -1,53 +1,3 @@
|
||||
2002-07-26 Alp Toker <[email protected]>
|
||||
|
||||
* INSTALL: Wrote a guide to mcs installation.
|
||||
* README: Updated to reflect the new INSTALL guide.
|
||||
|
||||
2002-07-23 Alp Toker <[email protected]>
|
||||
|
||||
* makefile.gnu: Added an install target (which sets permissions and
|
||||
respects prefix) and a dist target which produces a tarball. Also
|
||||
fixed a few other makefile issues.
|
||||
|
||||
2002-07-22 Peter Williams <[email protected]>
|
||||
|
||||
* class/library.make: Oops, the deps weren't right -- touching a .cs
|
||||
file didn't cause the libraries to be rebuilt.
|
||||
(clean): Robustify this rule a bit.
|
||||
|
||||
2002-07-20 Martin Baulig <[email protected]>
|
||||
|
||||
* class/makefile.gnu: Added System.Data.
|
||||
|
||||
2002-07-20 Martin Baulig <[email protected]>
|
||||
|
||||
* class/library.make: Put $(MONO_PATH_PREFIX) in front of the MONO_PATH.
|
||||
|
||||
* class/*/makefile.gnu: Set MONO_PATH_PREFIX=../lib:
|
||||
|
||||
2002-07-19 Martin Baulig <[email protected]>
|
||||
|
||||
* makefile.gnu (DIRS): Added nunit.
|
||||
|
||||
2002-07-19 Martin Baulig <[email protected]>
|
||||
|
||||
Added the super-cool set of makefiles from Peter Williams which run on
|
||||
GNU/Linux without NAnt. I named them `makefile.gnu' and not `GNUmakefile'
|
||||
since this won't break the windows build.
|
||||
|
||||
To compile stuff on GNU/Linux, just do a `make -f makefile.gnu'.
|
||||
|
||||
* mcs-tool, */makefile.gnu, class/library.make: New files.
|
||||
|
||||
2002-07-19 Martin Baulig <[email protected]>
|
||||
|
||||
* */makefile (NANT): Use a variable `NANT' so the user can override it with
|
||||
`make NANT=/usr/local/bin/NAnt.exe'.
|
||||
|
||||
2002-05-09 Daniel Morgan <[email protected]>
|
||||
|
||||
* AUTHORS: add me to class libraries list
|
||||
|
||||
2002-03-26 Dick Porter <[email protected]>
|
||||
|
||||
* makefile (linux): Abandon the build if any of the subdir makes fail
|
||||
@@ -68,4 +18,4 @@
|
||||
|
||||
2002-01-20 Nick Drochak <[email protected]>
|
||||
|
||||
* add nunit directory to the list of dirs to build in
|
||||
* add nunit directory to the list of dirs to build in
|
||||
-56
@@ -1,56 +0,0 @@
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
The Mono project has developed mono, an x86-specific CL JIT compiler and
|
||||
mint, a portable CLI interpreter. The build process of each of these
|
||||
depends on nothing more than a C compiler, glib2 and libgc.
|
||||
|
||||
However, to provide a working runtime environment, these programs must
|
||||
be supplemented by corlib, a CLR assembly to which they are closely
|
||||
tied. This package provides the C# sources for corlib as well as some
|
||||
additional assemblies and mcs, the Mono C# compiler.
|
||||
|
||||
To build this package, you must already have a C# compiler installed.
|
||||
Build instructions for *NIX and Microsoft Windows follow.
|
||||
|
||||
Building mcs on *NIX
|
||||
====================
|
||||
|
||||
mcs provides a set of makefiles which make it easy to build and install
|
||||
mcs on *NIX systems like Linux or FreeBSD where mcs is already
|
||||
installed.
|
||||
|
||||
To build the compiler and class libraries, run:
|
||||
|
||||
make -f makefile.gnu
|
||||
|
||||
The libraries will be placed in the directory class/lib/ and the mcs
|
||||
compiler executable in mcs/.
|
||||
|
||||
To install them, run:
|
||||
|
||||
make -f makefile.gnu install
|
||||
|
||||
You can also specify a prefix into which the files will be installed:
|
||||
|
||||
make -f makefile.gnu install prefix=/opt
|
||||
|
||||
If you are tracking Mono's development, you may sometimes need to share
|
||||
the compiled libraries with others. If you want to produce an easily
|
||||
distributable tarball, run:
|
||||
|
||||
make -f makefile.gnu dist
|
||||
|
||||
Building mcs on Windows
|
||||
=======================
|
||||
|
||||
It is also possible to build mcs on Windows using the Microsoft .NET
|
||||
framework. This may be convenient if you do not have access to a working
|
||||
mcs setup. To build the compiler and class libraries, run:
|
||||
|
||||
make
|
||||
|
||||
The libraries will be placed in the directory class/lib/ and the mcs compiler
|
||||
executable in mcs/. They can then be copied to /usr/lib and /usr/bin or
|
||||
wherever desired on the target system.
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
The Mono project has developed mono, an x86-specific CL JIT compiler and
|
||||
mint, a portable CLI interpreter. The build process of each of these
|
||||
depends on nothing more than a C compiler, glib2 and libgc.
|
||||
|
||||
However, to provide a working runtime environment, these programs must
|
||||
be supplemented by corlib, a CLR assembly to which they are closely
|
||||
tied. This package provides the C# sources for corlib as well as some
|
||||
additional assemblies and mcs, the Mono C# compiler.
|
||||
|
||||
To build this package, you must already have a C# compiler installed.
|
||||
Build instructions for *NIX and Microsoft Windows follow.
|
||||
|
||||
Building mcs on *NIX
|
||||
====================
|
||||
|
||||
mcs provides a set of makefiles which make it easy to build and install
|
||||
mcs on *NIX systems like Linux or FreeBSD where mcs is already
|
||||
installed.
|
||||
|
||||
To build the compiler and class libraries, run:
|
||||
|
||||
make -f makefile.gnu
|
||||
|
||||
The libraries will be placed in the directory class/lib/ and the mcs
|
||||
compiler executable in mcs/.
|
||||
|
||||
To install them, run:
|
||||
|
||||
make -f makefile.gnu install
|
||||
|
||||
You can also specify a prefix into which the files will be installed:
|
||||
|
||||
make -f makefile.gnu install prefix=/opt
|
||||
|
||||
If you are tracking Mono's development, you may sometimes need to share
|
||||
the compiled libraries with others. If you want to produce an easily
|
||||
distributable tarball, run:
|
||||
|
||||
make -f makefile.gnu dist
|
||||
|
||||
Building mcs on Windows
|
||||
=======================
|
||||
|
||||
It is also possible to build mcs on Windows using the Microsoft .NET
|
||||
framework. This may be convenient if you do not have access to a working
|
||||
mcs setup. To build the compiler and class libraries, run:
|
||||
|
||||
make
|
||||
|
||||
The libraries will be placed in the directory class/lib/ and the mcs compiler
|
||||
executable in mcs/. They can then be copied to /usr/lib and /usr/bin or
|
||||
wherever desired on the target system.
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 448 B |
@@ -2,8 +2,6 @@
|
||||
This contains the Mono C# compiler as well as the Mono runtime
|
||||
library.
|
||||
|
||||
See INSTALL for a guide to building and installing mcs.
|
||||
|
||||
Layout:
|
||||
|
||||
class/
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
2002-05-12 Rafael Teixeira <[email protected]>
|
||||
|
||||
* Microsoft.VisualBasic.Strings: Strings.cs - Merged all method implementations provided
|
||||
by Martin Adoue, with method signatures (specially attributes) provided
|
||||
by Chris J. Breisch. Some tweaking for the Mid member (two overloads versus third optional parameter).
|
||||
|
||||
|
||||
|
||||
2002-05-18 Chris J Breisch <[email protected]>
|
||||
|
||||
* Microsoft.VisualBasic: *.cs/Test/*.cs - Cleaned up code, added
|
||||
implementations for Collection.cs, Conversion.cs and NUnit Tests
|
||||
for both
|
||||
|
||||
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<!-- NAnt build file for System.dll -->
|
||||
|
||||
<project name="System" default="build">
|
||||
<property name="debug" value="false"/>
|
||||
|
||||
<target name="build">
|
||||
<mkdir dir="../lib"/>
|
||||
<csc target="library" output="../lib/Microsoft.VisualBasic.dll" debug="${debug}">
|
||||
<arg value="/nowarn:1595"/>
|
||||
<arg value="/noconfig"/> <!-- don't reference ms assemblies -->
|
||||
|
||||
<!-- cor compare dies with these currently -->
|
||||
<!--<arg value="/nostdlib"/>--> <!-- don't reference mscorlib -->
|
||||
<!--<arg value="/lib:../lib/"/>-->
|
||||
<!--<arg value="/r:..\lib\corlib.dll"/>-->
|
||||
<!--<arg value="/r:..\lib\System.dll"/>-->
|
||||
<arg value="/r:System.dll"/>
|
||||
<sources>
|
||||
<includes name="**/*.cs"/>
|
||||
<excludes name="Test/**"/>
|
||||
</sources>
|
||||
<references>
|
||||
<!--<includes name="../lib/corlib.dll"/>-->
|
||||
<!--<includes name="../lib/System.dll"/>-->
|
||||
</references>
|
||||
</csc>
|
||||
<copy file="../lib/Microsoft.VisualBasic.dll" tofile="Test/Microsoft.VisualBasic.dll"/>
|
||||
</target>
|
||||
|
||||
<target name="test" depends="build">
|
||||
<nant basedir="Test" target="test"/>
|
||||
</target>
|
||||
|
||||
<target name="clean">
|
||||
<nant basedir="Test" target="clean"/>
|
||||
<delete file="../lib/Microsoft.VisualBasic.dll" failonerror="false"/>
|
||||
</target>
|
||||
</project>
|
||||
@@ -1,18 +0,0 @@
|
||||
//
|
||||
// AppWinStyle.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
public enum AppWinStyle : short {
|
||||
Hide = 0,
|
||||
NormalFocus = 1,
|
||||
MinimizedFocus = 2,
|
||||
MaximizedFocus = 3,
|
||||
NormalNoFocus = 4,
|
||||
MinimizedNoFocus = 6
|
||||
};
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
//
|
||||
// CallType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
public enum CallType : int {
|
||||
Method = 1,
|
||||
Get = 2,
|
||||
Let = 4,
|
||||
Set = 8
|
||||
};
|
||||
}
|
||||
@@ -1,314 +0,0 @@
|
||||
//
|
||||
// Collection.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
|
||||
|
||||
namespace Microsoft.VisualBasic {
|
||||
sealed public class Collection : ICollection, IList {
|
||||
//
|
||||
// <summary>
|
||||
// Collection : The BASIC Collection Object
|
||||
// </summary>
|
||||
//
|
||||
// <remarks>
|
||||
// </remarks>
|
||||
// Declarations
|
||||
private Hashtable m_Hashtable = new Hashtable();
|
||||
private ArrayList m_HashIndexers = new ArrayList();
|
||||
internal bool Modified = false;
|
||||
|
||||
private class ColEnumerator: IEnumerator
|
||||
//
|
||||
// <summary>
|
||||
// ColEnumerator : This internal class is used
|
||||
// for enumerating through our Collection
|
||||
// </summary>
|
||||
//
|
||||
// <remarks>
|
||||
// </remarks>
|
||||
{
|
||||
private int Index;
|
||||
private Collection Col;
|
||||
private object Item;
|
||||
|
||||
public ColEnumerator(Collection coll)
|
||||
{
|
||||
Col = coll;
|
||||
Index = 0;
|
||||
Col.Modified = false;
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
if (Col.Modified)
|
||||
{
|
||||
// FIXME : spec says throw exception, MS doesn't
|
||||
// throw new InvalidOperationException();
|
||||
}
|
||||
Index = 0;
|
||||
}
|
||||
|
||||
public bool MoveNext()
|
||||
{
|
||||
if (Col.Modified)
|
||||
{
|
||||
// FIXME : spec says throw exception, MS doesn't
|
||||
// throw new InvalidOperationException();
|
||||
}
|
||||
Index++;
|
||||
try {
|
||||
Item = Col[Index];
|
||||
}
|
||||
catch {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
return Index <= Col.Count;
|
||||
}
|
||||
|
||||
public object Current {
|
||||
get {
|
||||
if (Index == 0) {
|
||||
// FIXME : spec says throw InvalidOperation,
|
||||
// but MS throws IndexOutOfRange
|
||||
throw new IndexOutOfRangeException();
|
||||
// throw new InvalidOperationException();
|
||||
}
|
||||
else {
|
||||
return Item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The current property on the IEnumerator interface:
|
||||
object IEnumerator.Current {
|
||||
get {
|
||||
return(Current);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Constructors
|
||||
// Properties
|
||||
System.Boolean IList.IsReadOnly {
|
||||
get {return false;}
|
||||
}
|
||||
|
||||
System.Boolean ICollection.IsSynchronized {
|
||||
get {return m_Hashtable.IsSynchronized;}
|
||||
}
|
||||
|
||||
System.Object ICollection.SyncRoot {
|
||||
get {return m_Hashtable.SyncRoot;}
|
||||
}
|
||||
|
||||
System.Boolean IList.IsFixedSize {
|
||||
get {return false;}
|
||||
}
|
||||
|
||||
public System.Int32 Count {
|
||||
get {return m_HashIndexers.Count;}
|
||||
}
|
||||
|
||||
[ReadOnly(true)]
|
||||
[System.Runtime.CompilerServices.IndexerName("Item")]
|
||||
public System.Object this [System.Int32 Index] {
|
||||
get {
|
||||
try {
|
||||
// Collections are 1-based
|
||||
return m_Hashtable[m_HashIndexers[Index-1]];
|
||||
}
|
||||
catch {
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
}
|
||||
set {throw new NotImplementedException();}
|
||||
}
|
||||
|
||||
[System.Runtime.CompilerServices.IndexerName("Item")]
|
||||
public System.Object this [System.Object Index]
|
||||
{
|
||||
get {
|
||||
if (Index is string) {
|
||||
if (m_HashIndexers.IndexOf(Index) < 0) {
|
||||
// throw new IndexOutOfRangeException();
|
||||
// FIXME : Spec Says IndexOutOfRange...MS throws Argument
|
||||
throw new ArgumentException();
|
||||
}
|
||||
return m_Hashtable[Index];
|
||||
}
|
||||
else {
|
||||
throw new ArgumentException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Methods
|
||||
System.Int32 IList.IndexOf (System.Object value)
|
||||
{
|
||||
int LastPos = 0;
|
||||
bool Found = false;
|
||||
|
||||
while (!Found) {
|
||||
LastPos = m_HashIndexers.IndexOf(value.GetHashCode(), LastPos);
|
||||
if (LastPos == -1) {
|
||||
Found = true;
|
||||
} else if (m_Hashtable[m_HashIndexers[LastPos]] == value) {
|
||||
Found = true;
|
||||
}
|
||||
}
|
||||
return LastPos;
|
||||
}
|
||||
|
||||
System.Boolean IList.Contains (System.Object value)
|
||||
{
|
||||
return m_Hashtable.ContainsValue(value);
|
||||
}
|
||||
|
||||
void IList.Clear ()
|
||||
{
|
||||
m_Hashtable.Clear();
|
||||
m_HashIndexers.Clear();
|
||||
}
|
||||
|
||||
public void Remove (System.String Key)
|
||||
{
|
||||
int Index;
|
||||
|
||||
try {
|
||||
Index = m_HashIndexers.IndexOf(Key) + 1;
|
||||
Remove(Index);
|
||||
}
|
||||
catch {
|
||||
throw new ArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
public void Remove (System.Int32 Index)
|
||||
{
|
||||
try {
|
||||
// Collections are 1-based
|
||||
m_Hashtable.Remove(m_HashIndexers[Index-1]);
|
||||
m_HashIndexers.RemoveAt(Index-1);
|
||||
Modified = true;
|
||||
}
|
||||
catch {
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
}
|
||||
|
||||
void IList.Remove (System.Object value)
|
||||
{
|
||||
if (!(value is string)) {
|
||||
throw new ArgumentException();
|
||||
}
|
||||
Remove((string)value);
|
||||
}
|
||||
|
||||
void IList.RemoveAt (System.Int32 index)
|
||||
{
|
||||
Remove(index);
|
||||
}
|
||||
|
||||
void IList.Insert (System.Int32 index, System.Object value)
|
||||
{
|
||||
Insert(index, value, value.GetHashCode().ToString());
|
||||
}
|
||||
|
||||
void Insert(System.Int32 index, System.Object value, string Key)
|
||||
{
|
||||
m_HashIndexers.Insert(index -1, Key);
|
||||
m_Hashtable.Add(Key, value);
|
||||
Modified = true;
|
||||
}
|
||||
|
||||
System.Int32 IList.Add (System.Object Item)
|
||||
{
|
||||
return Add(Item, Item.GetHashCode().ToString());
|
||||
}
|
||||
|
||||
System.Int32 Add(System.Object Item, string Key)
|
||||
{
|
||||
m_Hashtable.Add(Key, Item);
|
||||
Modified = true;
|
||||
|
||||
return m_HashIndexers.Add(Key);
|
||||
}
|
||||
|
||||
private int GetIndexPosition(System.Object Item)
|
||||
{
|
||||
int Position = int.MinValue;
|
||||
|
||||
if (Item is string) {
|
||||
Position = m_HashIndexers.IndexOf(Item) + 1;
|
||||
}
|
||||
else if (Item is int) {
|
||||
Position = Convert.ToInt32(Item);
|
||||
}
|
||||
else {
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
if (Position < 0) {
|
||||
throw new ArgumentException();
|
||||
}
|
||||
return Position;
|
||||
}
|
||||
|
||||
public void Add (System.Object Item,
|
||||
[Optional] [DefaultValue(null)] String Key,
|
||||
[Optional] [DefaultValue(null)] System.Object Before,
|
||||
[Optional] [DefaultValue(null)] System.Object After)
|
||||
{
|
||||
int Position = int.MinValue;
|
||||
|
||||
// check for valid args
|
||||
if (Before != null && After != null) {
|
||||
throw new ArgumentException();
|
||||
}
|
||||
if (Key != null && m_HashIndexers.IndexOf(Key) != -1) {
|
||||
throw new ArgumentException();
|
||||
}
|
||||
if (Before != null) {
|
||||
Position = GetIndexPosition(Before);
|
||||
}
|
||||
if (After != null) {
|
||||
Position = GetIndexPosition(After) + 1;
|
||||
}
|
||||
if (Key == null) {
|
||||
Key = Item.GetHashCode().ToString();
|
||||
}
|
||||
|
||||
if (Position > (m_HashIndexers.Count+1) || Position == int.MinValue) {
|
||||
Add(Item, Key);
|
||||
}
|
||||
else {
|
||||
Insert(Position, Item, Key);
|
||||
}
|
||||
}
|
||||
|
||||
void ICollection.CopyTo (System.Array array, System.Int32 index)
|
||||
{
|
||||
System.Array NewArray =
|
||||
Array.CreateInstance(typeof(System.Object),
|
||||
m_HashIndexers.Count - index);
|
||||
|
||||
// Collections are 1-based
|
||||
for (int i = index -1; i < m_HashIndexers.Count; i++) {
|
||||
NewArray.SetValue(m_Hashtable[m_HashIndexers[i]], i - index);
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerator GetEnumerator ()
|
||||
{
|
||||
return new ColEnumerator(this);
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
//
|
||||
// ComClassAttribute.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic {
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Class)]
|
||||
sealed public class ComClassAttribute : System.Attribute {
|
||||
// Declarations
|
||||
// Constructors
|
||||
[MonoTODO]
|
||||
ComClassAttribute(System.String _ClassID) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
ComClassAttribute(System.String _ClassID, System.String _InterfaceID) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
ComClassAttribute(System.String _ClassID, System.String _InterfaceID, System.String _EventId) { throw new NotImplementedException (); }
|
||||
// Properties
|
||||
[MonoTODO]
|
||||
public System.String EventID { get { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public System.Boolean InterfaceShadows { get { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public System.String ClassID { get { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public System.String InterfaceID { get { throw new NotImplementedException (); } }
|
||||
// Methods
|
||||
// Events
|
||||
};
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
//
|
||||
// CompareMethod.cs
|
||||
//
|
||||
// Author:
|
||||
// Martin Adoue ([email protected])
|
||||
//
|
||||
// (C) 2002 Martin Adoue
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
|
||||
/// <summary>
|
||||
/// The CompareMethod enumeration contains constants used to determine the
|
||||
/// way strings are compared when using functions such as InStr and StrComp.
|
||||
/// These constants can be used anywhere in your code.
|
||||
/// </summary>
|
||||
public enum CompareMethod : int {
|
||||
/// <summary>
|
||||
/// Performs a binary comparison
|
||||
/// </summary>
|
||||
Binary = 0,
|
||||
/// <summary>
|
||||
/// Performs a textual comparison
|
||||
/// </summary>
|
||||
Text = 1
|
||||
};
|
||||
}
|
||||
@@ -1,120 +0,0 @@
|
||||
//
|
||||
// Constants.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class Constants {
|
||||
// Declarations
|
||||
public const System.Int32 vbObjectError = (System.Int32)(-2147221504);
|
||||
public const System.String vbCrLf = "\n\r";
|
||||
public const System.String vbNewLine = "\n\r";
|
||||
public const System.String vbCr = "\n";
|
||||
public const System.String vbLf = "\r";
|
||||
public const System.String vbBack = "\b";
|
||||
public const System.String vbFormFeed = "\f";
|
||||
public const System.String vbTab = "\t";
|
||||
public const System.String vbVerticalTab = "\v";
|
||||
public const System.String vbNullChar = "\0";
|
||||
public const System.String vbNullString = (System.String)null;
|
||||
public const Microsoft.VisualBasic.AppWinStyle vbHide = (Microsoft.VisualBasic.AppWinStyle)(0);
|
||||
public const Microsoft.VisualBasic.AppWinStyle vbNormalFocus = (Microsoft.VisualBasic.AppWinStyle)(1);
|
||||
public const Microsoft.VisualBasic.AppWinStyle vbMinimizedFocus = (Microsoft.VisualBasic.AppWinStyle)(2);
|
||||
public const Microsoft.VisualBasic.AppWinStyle vbMaximizedFocus = (Microsoft.VisualBasic.AppWinStyle)(3);
|
||||
public const Microsoft.VisualBasic.AppWinStyle vbNormalNoFocus = (Microsoft.VisualBasic.AppWinStyle)(4);
|
||||
public const Microsoft.VisualBasic.AppWinStyle vbMinimizedNoFocus = (Microsoft.VisualBasic.AppWinStyle)(6);
|
||||
public const Microsoft.VisualBasic.CallType vbMethod = (Microsoft.VisualBasic.CallType)(1);
|
||||
public const Microsoft.VisualBasic.CallType vbGet = (Microsoft.VisualBasic.CallType)(2);
|
||||
public const Microsoft.VisualBasic.CallType vbLet = (Microsoft.VisualBasic.CallType)(4);
|
||||
public const Microsoft.VisualBasic.CallType vbSet = (Microsoft.VisualBasic.CallType)(8);
|
||||
public const Microsoft.VisualBasic.CompareMethod vbBinaryCompare = (Microsoft.VisualBasic.CompareMethod)(0);
|
||||
public const Microsoft.VisualBasic.CompareMethod vbTextCompare = (Microsoft.VisualBasic.CompareMethod)(1);
|
||||
public const Microsoft.VisualBasic.DateFormat vbGeneralDate = (Microsoft.VisualBasic.DateFormat)(0);
|
||||
public const Microsoft.VisualBasic.DateFormat vbLongDate = (Microsoft.VisualBasic.DateFormat)(1);
|
||||
public const Microsoft.VisualBasic.DateFormat vbShortDate = (Microsoft.VisualBasic.DateFormat)(2);
|
||||
public const Microsoft.VisualBasic.DateFormat vbLongTime = (Microsoft.VisualBasic.DateFormat)(3);
|
||||
public const Microsoft.VisualBasic.DateFormat vbShortTime = (Microsoft.VisualBasic.DateFormat)(4);
|
||||
public const Microsoft.VisualBasic.FirstDayOfWeek vbUseSystemDayOfWeek = (Microsoft.VisualBasic.FirstDayOfWeek)(0);
|
||||
public const Microsoft.VisualBasic.FirstDayOfWeek vbSunday = (Microsoft.VisualBasic.FirstDayOfWeek)(1);
|
||||
public const Microsoft.VisualBasic.FirstDayOfWeek vbMonday = (Microsoft.VisualBasic.FirstDayOfWeek)(2);
|
||||
public const Microsoft.VisualBasic.FirstDayOfWeek vbTuesday = (Microsoft.VisualBasic.FirstDayOfWeek)(3);
|
||||
public const Microsoft.VisualBasic.FirstDayOfWeek vbWednesday = (Microsoft.VisualBasic.FirstDayOfWeek)(4);
|
||||
public const Microsoft.VisualBasic.FirstDayOfWeek vbThursday = (Microsoft.VisualBasic.FirstDayOfWeek)(5);
|
||||
public const Microsoft.VisualBasic.FirstDayOfWeek vbFriday = (Microsoft.VisualBasic.FirstDayOfWeek)(6);
|
||||
public const Microsoft.VisualBasic.FirstDayOfWeek vbSaturday = (Microsoft.VisualBasic.FirstDayOfWeek)(7);
|
||||
public const Microsoft.VisualBasic.FileAttribute vbNormal = (Microsoft.VisualBasic.FileAttribute)(0);
|
||||
public const Microsoft.VisualBasic.FileAttribute vbReadOnly = (Microsoft.VisualBasic.FileAttribute)(1);
|
||||
public const Microsoft.VisualBasic.FileAttribute vbHidden = (Microsoft.VisualBasic.FileAttribute)(2);
|
||||
public const Microsoft.VisualBasic.FileAttribute vbSystem = (Microsoft.VisualBasic.FileAttribute)(4);
|
||||
public const Microsoft.VisualBasic.FileAttribute vbVolume = (Microsoft.VisualBasic.FileAttribute)(8);
|
||||
public const Microsoft.VisualBasic.FileAttribute vbDirectory = (Microsoft.VisualBasic.FileAttribute)(16);
|
||||
public const Microsoft.VisualBasic.FileAttribute vbArchive = (Microsoft.VisualBasic.FileAttribute)(32);
|
||||
public const Microsoft.VisualBasic.FirstWeekOfYear vbUseSystem = (Microsoft.VisualBasic.FirstWeekOfYear)(0);
|
||||
public const Microsoft.VisualBasic.FirstWeekOfYear vbFirstJan1 = (Microsoft.VisualBasic.FirstWeekOfYear)(1);
|
||||
public const Microsoft.VisualBasic.FirstWeekOfYear vbFirstFourDays = (Microsoft.VisualBasic.FirstWeekOfYear)(2);
|
||||
public const Microsoft.VisualBasic.FirstWeekOfYear vbFirstFullWeek = (Microsoft.VisualBasic.FirstWeekOfYear)(3);
|
||||
public const Microsoft.VisualBasic.VbStrConv vbUpperCase = (Microsoft.VisualBasic.VbStrConv)(1);
|
||||
public const Microsoft.VisualBasic.VbStrConv vbLowerCase = (Microsoft.VisualBasic.VbStrConv)(2);
|
||||
public const Microsoft.VisualBasic.VbStrConv vbProperCase = (Microsoft.VisualBasic.VbStrConv)(3);
|
||||
public const Microsoft.VisualBasic.VbStrConv vbWide = (Microsoft.VisualBasic.VbStrConv)(4);
|
||||
public const Microsoft.VisualBasic.VbStrConv vbNarrow = (Microsoft.VisualBasic.VbStrConv)(8);
|
||||
public const Microsoft.VisualBasic.VbStrConv vbKatakana = (Microsoft.VisualBasic.VbStrConv)(16);
|
||||
public const Microsoft.VisualBasic.VbStrConv vbHiragana = (Microsoft.VisualBasic.VbStrConv)(32);
|
||||
public const Microsoft.VisualBasic.VbStrConv vbSimplifiedChinese = (Microsoft.VisualBasic.VbStrConv)(256);
|
||||
public const Microsoft.VisualBasic.VbStrConv vbTraditionalChinese = (Microsoft.VisualBasic.VbStrConv)(512);
|
||||
public const Microsoft.VisualBasic.VbStrConv vbLinguisticCasing = (Microsoft.VisualBasic.VbStrConv)(1024);
|
||||
public const Microsoft.VisualBasic.TriState vbUseDefault = (Microsoft.VisualBasic.TriState)(-2);
|
||||
public const Microsoft.VisualBasic.TriState vbTrue = (Microsoft.VisualBasic.TriState)(-1);
|
||||
public const Microsoft.VisualBasic.TriState vbFalse = (Microsoft.VisualBasic.TriState)(0);
|
||||
public const Microsoft.VisualBasic.VariantType vbEmpty = (Microsoft.VisualBasic.VariantType)(0);
|
||||
public const Microsoft.VisualBasic.VariantType vbNull = (Microsoft.VisualBasic.VariantType)(1);
|
||||
public const Microsoft.VisualBasic.VariantType vbInteger = (Microsoft.VisualBasic.VariantType)(3);
|
||||
public const Microsoft.VisualBasic.VariantType vbLong = (Microsoft.VisualBasic.VariantType)(20);
|
||||
public const Microsoft.VisualBasic.VariantType vbSingle = (Microsoft.VisualBasic.VariantType)(4);
|
||||
public const Microsoft.VisualBasic.VariantType vbDouble = (Microsoft.VisualBasic.VariantType)(5);
|
||||
public const Microsoft.VisualBasic.VariantType vbCurrency = (Microsoft.VisualBasic.VariantType)(6);
|
||||
public const Microsoft.VisualBasic.VariantType vbDate = (Microsoft.VisualBasic.VariantType)(7);
|
||||
public const Microsoft.VisualBasic.VariantType vbString = (Microsoft.VisualBasic.VariantType)(8);
|
||||
public const Microsoft.VisualBasic.VariantType vbObject = (Microsoft.VisualBasic.VariantType)(9);
|
||||
public const Microsoft.VisualBasic.VariantType vbBoolean = (Microsoft.VisualBasic.VariantType)(11);
|
||||
public const Microsoft.VisualBasic.VariantType vbVariant = (Microsoft.VisualBasic.VariantType)(12);
|
||||
public const Microsoft.VisualBasic.VariantType vbDecimal = (Microsoft.VisualBasic.VariantType)(14);
|
||||
public const Microsoft.VisualBasic.VariantType vbByte = (Microsoft.VisualBasic.VariantType)(17);
|
||||
public const Microsoft.VisualBasic.VariantType vbUserDefinedType = (Microsoft.VisualBasic.VariantType)(36);
|
||||
public const Microsoft.VisualBasic.VariantType vbArray = (Microsoft.VisualBasic.VariantType)(8192);
|
||||
public const Microsoft.VisualBasic.MsgBoxResult vbOK = (Microsoft.VisualBasic.MsgBoxResult)(1);
|
||||
public const Microsoft.VisualBasic.MsgBoxResult vbCancel = (Microsoft.VisualBasic.MsgBoxResult)(2);
|
||||
public const Microsoft.VisualBasic.MsgBoxResult vbAbort = (Microsoft.VisualBasic.MsgBoxResult)(3);
|
||||
public const Microsoft.VisualBasic.MsgBoxResult vbRetry = (Microsoft.VisualBasic.MsgBoxResult)(4);
|
||||
public const Microsoft.VisualBasic.MsgBoxResult vbIgnore = (Microsoft.VisualBasic.MsgBoxResult)(5);
|
||||
public const Microsoft.VisualBasic.MsgBoxResult vbYes = (Microsoft.VisualBasic.MsgBoxResult)(6);
|
||||
public const Microsoft.VisualBasic.MsgBoxResult vbNo = (Microsoft.VisualBasic.MsgBoxResult)(7);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbOKOnly = (Microsoft.VisualBasic.MsgBoxStyle)(0);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbOKCancel = (Microsoft.VisualBasic.MsgBoxStyle)(1);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbAbortRetryIgnore = (Microsoft.VisualBasic.MsgBoxStyle)(2);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbYesNoCancel = (Microsoft.VisualBasic.MsgBoxStyle)(3);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbYesNo = (Microsoft.VisualBasic.MsgBoxStyle)(4);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbRetryCancel = (Microsoft.VisualBasic.MsgBoxStyle)(5);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbCritical = (Microsoft.VisualBasic.MsgBoxStyle)(16);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbQuestion = (Microsoft.VisualBasic.MsgBoxStyle)(32);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbExclamation = (Microsoft.VisualBasic.MsgBoxStyle)(48);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbInformation = (Microsoft.VisualBasic.MsgBoxStyle)(64);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbDefaultButton1 = (Microsoft.VisualBasic.MsgBoxStyle)(0);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbDefaultButton2 = (Microsoft.VisualBasic.MsgBoxStyle)(256);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbDefaultButton3 = (Microsoft.VisualBasic.MsgBoxStyle)(512);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbApplicationModal = (Microsoft.VisualBasic.MsgBoxStyle)(0);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbSystemModal = (Microsoft.VisualBasic.MsgBoxStyle)(4096);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbMsgBoxHelp = (Microsoft.VisualBasic.MsgBoxStyle)(16384);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbMsgBoxRight = (Microsoft.VisualBasic.MsgBoxStyle)(524288);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbMsgBoxRtlReading = (Microsoft.VisualBasic.MsgBoxStyle)(1048576);
|
||||
public const Microsoft.VisualBasic.MsgBoxStyle vbMsgBoxSetForeground = (Microsoft.VisualBasic.MsgBoxStyle)(65536);
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
// Events
|
||||
};
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
//
|
||||
// ControlChars.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
sealed public class ControlChars {
|
||||
// Declarations
|
||||
public const System.String CrLf = "\n\r";
|
||||
public const System.String NewLine = "\n\r";
|
||||
public const System.Char Cr = '\n';
|
||||
public const System.Char Lf = '\r';
|
||||
public const System.Char Back = '\b';
|
||||
public const System.Char FormFeed = '\f';
|
||||
public const System.Char Tab = '\t';
|
||||
public const System.Char VerticalTab = '\v';
|
||||
public const System.Char NullChar = '\0';
|
||||
public const System.Char Quote = '"';
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
// Events
|
||||
};
|
||||
}
|
||||
@@ -1,616 +0,0 @@
|
||||
//
|
||||
// Conversion.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Microsoft.VisualBasic {
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class Conversion {
|
||||
//
|
||||
// <summary>
|
||||
// Collection : The BASIC Collection Object
|
||||
// </summary>
|
||||
//
|
||||
// <remarks>
|
||||
// </remarks>
|
||||
// Declarations
|
||||
private static readonly char[] _HexDigits = {
|
||||
'0', '1', '2', '3', '4', '5', '6', '7',
|
||||
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
|
||||
};
|
||||
private static readonly char[] _OctDigits = {
|
||||
'0', '1', '2', '3', '4', '5', '6', '7'
|
||||
};
|
||||
private static readonly long[] _Maxes = {
|
||||
32767, 2147483647, 9223372036854775807
|
||||
};
|
||||
private enum SizeIndexes {
|
||||
Int16 = 0,
|
||||
Int32 = 1,
|
||||
Int64 = 2
|
||||
};
|
||||
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static string ErrorToString () {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
[MonoTODO]
|
||||
public static string ErrorToString (
|
||||
System.Int32 ErrorNumber) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
// Return whether d is +/- Could do this with a macro,
|
||||
// but this is cleaner
|
||||
private static int Sign(double d) { return d > 0 ? 1 : -1;}
|
||||
|
||||
// try to cast an Object to a string...used in several places
|
||||
private static string CastToString (System.Object Expression) {
|
||||
try {
|
||||
return (string)Expression;
|
||||
}
|
||||
catch {
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
}
|
||||
|
||||
// Fix on Integer types doesn't do anything
|
||||
public static short Fix (short Number) { return Number; }
|
||||
public static int Fix (int Number) { return Number; }
|
||||
public static long Fix (long Number) { return Number; }
|
||||
|
||||
// Fix on other numberic types = Sign(Number) * Int(Abs(Number))
|
||||
public static double Fix (double Number) {
|
||||
return Sign(Number) * Int (Math.Abs (Number));
|
||||
}
|
||||
public static float Fix (float Number) {
|
||||
return Sign(Number) * Int (Math.Abs (Number));
|
||||
}
|
||||
public static decimal Fix (decimal Number) {
|
||||
return Sign((double)Number) * Int (Math.Abs (Number));
|
||||
}
|
||||
|
||||
// Fix on an Object type is trickier
|
||||
// first we have to cast it to the right type
|
||||
public static System.Object Fix (System.Object Number)
|
||||
{
|
||||
// always start out by throwing an exception
|
||||
// if Number is null
|
||||
if (Number == null) {
|
||||
throw new ArgumentNullException ("Number",
|
||||
"Value cannot be null");
|
||||
}
|
||||
|
||||
TypeCode TC = Type.GetTypeCode (Number.GetType ());
|
||||
|
||||
// switch on TypeCode and call appropriate Fix method
|
||||
switch (TC) {
|
||||
case TypeCode.Decimal:
|
||||
return Fix (Convert.ToDecimal (Number));
|
||||
case TypeCode.Double:
|
||||
return Fix (Convert.ToDouble (Number));
|
||||
case TypeCode.Single:
|
||||
return Fix (Convert.ToSingle (Number));
|
||||
case TypeCode.String:
|
||||
return Fix (Double.Parse (
|
||||
CastToString (Number)));
|
||||
|
||||
// for integer types, don't need to do anything
|
||||
case TypeCode.Byte:
|
||||
case TypeCode.Int16:
|
||||
case TypeCode.Int32:
|
||||
case TypeCode.Int64:
|
||||
case TypeCode.SByte:
|
||||
case TypeCode.UInt16:
|
||||
case TypeCode.UInt32:
|
||||
case TypeCode.UInt64:
|
||||
return Number;
|
||||
|
||||
// spec defines Empty as returning 0
|
||||
case TypeCode.Empty:
|
||||
return 0;
|
||||
|
||||
// we can't convert these types
|
||||
case TypeCode.Boolean:
|
||||
case TypeCode.Char:
|
||||
case TypeCode.DateTime:
|
||||
case TypeCode.DBNull:
|
||||
case TypeCode.Object:
|
||||
default:
|
||||
throw new ArgumentException (
|
||||
"Type of argument 'Number' is '"
|
||||
+ Number.GetType().FullName +
|
||||
"', which is not numeric.");
|
||||
}
|
||||
}
|
||||
|
||||
// Int on Integer types doesn't do anything
|
||||
public static short Int (short Number) { return Number; }
|
||||
public static int Int (int Number) { return Number; }
|
||||
public static long Int (long Number) { return Number; }
|
||||
|
||||
// Int on other numberic types is same thing as "Floor"
|
||||
public static double Int (double Number) {
|
||||
return (double) Math.Floor(Number);
|
||||
}
|
||||
public static float Int (float Number) {
|
||||
return (float) Math.Floor(Number);
|
||||
}
|
||||
public static decimal Int (decimal Number) {
|
||||
return Decimal.Floor(Number);
|
||||
}
|
||||
|
||||
// doing an Int on an Object is trickier
|
||||
// first we have to cast to the correct type
|
||||
public static System.Object Int (System.Object Number) {
|
||||
// always start out by throwing an exception
|
||||
// if Number is null
|
||||
if (Number == null) {
|
||||
throw new ArgumentNullException("Number",
|
||||
"Value cannot be null");
|
||||
}
|
||||
|
||||
TypeCode TC = Type.GetTypeCode (Number.GetType ());
|
||||
|
||||
// switch on TypeCode and call appropriate Int method
|
||||
switch (TC) {
|
||||
case TypeCode.Decimal:
|
||||
return Int (Convert.ToDecimal (Number));
|
||||
case TypeCode.Double:
|
||||
return Int (Convert.ToDouble (Number));
|
||||
case TypeCode.Single:
|
||||
return Int (Convert.ToSingle (Number));
|
||||
case TypeCode.String:
|
||||
return Int (Double.Parse (
|
||||
CastToString(Number)));
|
||||
|
||||
// Int on integer types does nothing
|
||||
case TypeCode.Byte:
|
||||
case TypeCode.Int16:
|
||||
case TypeCode.Int32:
|
||||
case TypeCode.Int64:
|
||||
case TypeCode.SByte:
|
||||
case TypeCode.UInt16:
|
||||
case TypeCode.UInt32:
|
||||
case TypeCode.UInt64:
|
||||
return Number;
|
||||
|
||||
// Spec defines Empty as returning 0
|
||||
case TypeCode.Empty:
|
||||
return 0;
|
||||
|
||||
// otherwise, it's we can't cast to a numeric
|
||||
case TypeCode.Boolean:
|
||||
case TypeCode.Char:
|
||||
case TypeCode.DateTime:
|
||||
case TypeCode.DBNull:
|
||||
case TypeCode.Object:
|
||||
default:
|
||||
throw new ArgumentException (
|
||||
"Type of argument 'Number' is '" +
|
||||
Number.GetType().FullName +
|
||||
"', which is not numeric.");
|
||||
}
|
||||
}
|
||||
|
||||
// we use this internally to get a string
|
||||
// representation of a number in a specific base
|
||||
private static string ToBase (ulong Number, int Length,
|
||||
char[] BaseDigits, uint Base) {
|
||||
int i;
|
||||
ulong r;
|
||||
// we use a char array here for performance
|
||||
char [] c = new Char[Length];
|
||||
string s = null;
|
||||
|
||||
|
||||
for (i = Length - 1; i >= 0; i--) {
|
||||
r = Number % Base;
|
||||
Number = Number / Base;
|
||||
c[i] = BaseDigits[r];
|
||||
if (Number == 0) {
|
||||
s = new string (c, i, Length - i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (s == null) {
|
||||
return new string (c);
|
||||
}
|
||||
else {
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// convert a number to Hex
|
||||
// a little bit of magic goes on here with negative #'s
|
||||
private static string ToHex(long Number, int Digits,
|
||||
SizeIndexes Size) {
|
||||
ulong UNumber;
|
||||
|
||||
if (Number < 0) {
|
||||
// we add maxint of the Number's type
|
||||
// twice and then 2 more...this has the
|
||||
// effect of turning it into a ulong
|
||||
// that has the same hex representation
|
||||
UNumber = (ulong)((Number + 2) +
|
||||
_Maxes[(int)Size]) +
|
||||
(ulong)_Maxes[(int)Size];
|
||||
}
|
||||
else {
|
||||
UNumber = (ulong)Number;
|
||||
}
|
||||
return ToBase(UNumber, Digits, _HexDigits, 16);
|
||||
}
|
||||
|
||||
// call our private function,
|
||||
// passing it the size of the item to convert
|
||||
public static string Hex (short Number) {
|
||||
return ToHex(Number, 4, SizeIndexes.Int16);
|
||||
}
|
||||
public static string Hex (byte Number) {
|
||||
return ToHex(Number, 2, SizeIndexes.Int16);
|
||||
}
|
||||
public static string Hex (int Number) {
|
||||
return ToHex(Number, 8, SizeIndexes.Int32);
|
||||
}
|
||||
public static string Hex (long Number) {
|
||||
return ToHex(Number, 16, SizeIndexes.Int64);
|
||||
}
|
||||
|
||||
// Objects are trickier
|
||||
// first we have to cast to appropriate type
|
||||
public static System.String Hex (System.Object Number) {
|
||||
// always start out by throwing an exception
|
||||
// if Number is null
|
||||
if (Number == null) {
|
||||
throw new ArgumentNullException ("Number",
|
||||
"Value cannot be null");
|
||||
}
|
||||
|
||||
TypeCode TC = Type.GetTypeCode (Number.GetType ());
|
||||
|
||||
switch (TC) {
|
||||
// try to parse the string as an Int32,
|
||||
// then an Int64, if that fails
|
||||
case TypeCode.String:
|
||||
try {
|
||||
return Hex (
|
||||
Int32.Parse (
|
||||
CastToString (Number)));
|
||||
}
|
||||
catch {
|
||||
return Hex (
|
||||
Int64.Parse (
|
||||
CastToString (Number)));
|
||||
}
|
||||
|
||||
// for the int types,
|
||||
// just call the normal "Hex" for that type
|
||||
case TypeCode.Byte:
|
||||
return Hex ((byte)Number);
|
||||
case TypeCode.Int16:
|
||||
return Hex ((short)Number);
|
||||
case TypeCode.Int32:
|
||||
return Hex ((int)Number);
|
||||
case TypeCode.Int64:
|
||||
return Hex ((long)Number);
|
||||
|
||||
// empty is defined as returning 0
|
||||
case TypeCode.Empty:
|
||||
return "0";
|
||||
|
||||
// we can't do any of these types
|
||||
case TypeCode.Boolean:
|
||||
case TypeCode.Char:
|
||||
case TypeCode.DBNull:
|
||||
case TypeCode.DateTime:
|
||||
case TypeCode.Decimal:
|
||||
case TypeCode.Double:
|
||||
case TypeCode.Object:
|
||||
case TypeCode.SByte:
|
||||
case TypeCode.Single:
|
||||
case TypeCode.UInt16:
|
||||
case TypeCode.UInt32:
|
||||
case TypeCode.UInt64:
|
||||
default:
|
||||
throw new ArgumentException (
|
||||
"Type of argument 'Number' is '" +
|
||||
Number.GetType().FullName +
|
||||
"', which is not numeric.");
|
||||
}
|
||||
}
|
||||
|
||||
// ToOct works just like ToHex, only in Octal.
|
||||
private static string ToOct(long Number, int Digits,
|
||||
SizeIndexes Size) {
|
||||
ulong UNumber;
|
||||
|
||||
if (Number < 0) {
|
||||
// for neg numbers add the maxint of
|
||||
// the appropriate size twice, and then two more
|
||||
// this has the effect of turning it
|
||||
// into a ulong with the same oct representation
|
||||
UNumber = (ulong)((Number + 2) +
|
||||
_Maxes[(int)Size]) +
|
||||
(ulong)(_Maxes[(int)Size]);
|
||||
}
|
||||
else {
|
||||
UNumber = (ulong)Number;
|
||||
}
|
||||
return ToBase (UNumber, Digits, _OctDigits, 8);
|
||||
}
|
||||
|
||||
// call ToOct with appropriate information
|
||||
public static string Oct (short Number) {
|
||||
return ToOct(Number, 6, SizeIndexes.Int16);
|
||||
}
|
||||
public static string Oct (byte Number) {
|
||||
return ToOct(Number, 3, SizeIndexes.Int16);
|
||||
}
|
||||
public static string Oct (int Number) {
|
||||
return ToOct(Number, 11, SizeIndexes.Int32);
|
||||
}
|
||||
public static string Oct (long Number) {
|
||||
return ToOct(Number, 22, SizeIndexes.Int64);
|
||||
}
|
||||
|
||||
// Objects are always trickier
|
||||
// first need to cast to appropriate type
|
||||
public static string Oct (System.Object Number) {
|
||||
// first, always throw an exception if Number is null
|
||||
if (Number == null) {
|
||||
throw new ArgumentNullException("Number",
|
||||
"Value cannot be null");
|
||||
}
|
||||
|
||||
TypeCode TC = Type.GetTypeCode (Number.GetType ());
|
||||
|
||||
switch (TC) {
|
||||
// try to parse a string as an Int32
|
||||
// and then an Int64
|
||||
case TypeCode.String:
|
||||
try {
|
||||
return Oct (
|
||||
Int32.Parse (
|
||||
CastToString (Number)));
|
||||
}
|
||||
catch {
|
||||
return Oct (
|
||||
Int64.Parse (
|
||||
CastToString (Number)));
|
||||
}
|
||||
|
||||
// integer types just call the appropriate "Oct"
|
||||
case TypeCode.Byte:
|
||||
return Oct ((byte)Number);
|
||||
case TypeCode.Int16:
|
||||
return Oct ((short)Number);
|
||||
case TypeCode.Int32:
|
||||
return Oct ((int)Number);
|
||||
case TypeCode.Int64:
|
||||
return Oct ((long)Number);
|
||||
|
||||
// Empty is defined as returning 0
|
||||
case TypeCode.Empty:
|
||||
return "0";
|
||||
|
||||
// We can't convert these to Octal
|
||||
case TypeCode.Boolean:
|
||||
case TypeCode.Char:
|
||||
case TypeCode.DBNull:
|
||||
case TypeCode.DateTime:
|
||||
case TypeCode.Decimal:
|
||||
case TypeCode.Double:
|
||||
case TypeCode.Object:
|
||||
case TypeCode.SByte:
|
||||
case TypeCode.Single:
|
||||
case TypeCode.UInt16:
|
||||
case TypeCode.UInt32:
|
||||
case TypeCode.UInt64:
|
||||
default:
|
||||
throw new ArgumentException (
|
||||
"Type of argument 'Number' is '" +
|
||||
Number.GetType().FullName +
|
||||
"', which is not numeric.");
|
||||
}
|
||||
}
|
||||
|
||||
// Str is pretty easy now that we have a language
|
||||
// with a ToString method()
|
||||
public static string Str (System.Object Number) {
|
||||
|
||||
// check for null as always and throw an exception
|
||||
if (Number == null) {
|
||||
throw new ArgumentNullException("Number");
|
||||
}
|
||||
|
||||
switch (Type.GetTypeCode (Number.GetType ())) {
|
||||
// for unsigned types, just call ToString
|
||||
case TypeCode.Byte:
|
||||
case TypeCode.UInt16:
|
||||
case TypeCode.UInt32:
|
||||
case TypeCode.UInt64:
|
||||
return Number.ToString();
|
||||
|
||||
// for signed types, we have to leave a
|
||||
// space for the missing + sign
|
||||
case TypeCode.Decimal:
|
||||
return ((decimal)Number > 0 ? " " : "")
|
||||
+ Number.ToString();
|
||||
case TypeCode.Double:
|
||||
return ((double)Number > 0 ? " " : "")
|
||||
+ Number.ToString();
|
||||
case TypeCode.Int16:
|
||||
return ((short)Number > 0 ? " " : "")
|
||||
+ Number.ToString();
|
||||
case TypeCode.Int32:
|
||||
return ((int)Number > 0 ? " " : "")
|
||||
+ Number.ToString();
|
||||
case TypeCode.Int64:
|
||||
return ((long)Number > 0 ? " " : "")
|
||||
+ Number.ToString();
|
||||
case TypeCode.SByte:
|
||||
return ((sbyte)Number > 0 ? " " : "")
|
||||
+ Number.ToString();
|
||||
case TypeCode.Single:
|
||||
return ((float)Number > 0 ? " " : "")
|
||||
+ Number.ToString();
|
||||
|
||||
// can't cast anything else to a Number
|
||||
default:
|
||||
throw new InvalidCastException(
|
||||
"Argument 'Number' cannot be converted to a numeric value.");
|
||||
}
|
||||
}
|
||||
|
||||
// The Val function is pretty bizarre
|
||||
// Val ("&HFF") = 255
|
||||
// Val ("&O377") = 255
|
||||
// Val ("1234 Any Street") = 1234
|
||||
// Val (" 12 45 . 90 7 E + 0 0 2 ") = 1245.907e+002 = 124590.7
|
||||
public static double Val (string InputStr) {
|
||||
int i;
|
||||
int Base;
|
||||
int NumChars = 0;
|
||||
char c;
|
||||
int Length = InputStr.Length;
|
||||
char[] Number = new char[Length];
|
||||
bool FoundRadixPrefix = false;
|
||||
Regex NumberReg;
|
||||
Match NumberMatch;
|
||||
|
||||
Base = 10;
|
||||
Number[0] = '\0';
|
||||
|
||||
// go through string
|
||||
for (i = 0; i < Length; i++) {
|
||||
c = InputStr[i];
|
||||
|
||||
// look for Radix prefix "&"
|
||||
if (i == 0 && c == '&') {
|
||||
FoundRadixPrefix = true;
|
||||
}
|
||||
|
||||
// look for an H or O following the prefix
|
||||
else if (FoundRadixPrefix && i == 1 &&
|
||||
(char.ToLower(c) == 'h' ||
|
||||
char.ToLower(c) == 'o')) {
|
||||
if (c == 'H') {
|
||||
Base = 16;
|
||||
}
|
||||
else {
|
||||
Base = 8;
|
||||
}
|
||||
}
|
||||
|
||||
// if we didn't find a radix prefix,
|
||||
// ignore whitespace
|
||||
else if (char.IsWhiteSpace(c) && (Base == 10)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// mash what's left together
|
||||
else {
|
||||
Number[NumChars++] = c;
|
||||
}
|
||||
}
|
||||
|
||||
// now we have a string to parse
|
||||
switch (Base) {
|
||||
// FIXME : for Octal and Hex,
|
||||
// Regex is probably overkill
|
||||
// Even for base 10, it might be faster
|
||||
// to write our own parser
|
||||
case 8:
|
||||
NumberReg = new Regex ("^[0-7]*");
|
||||
NumberMatch = NumberReg.Match (
|
||||
new string(Number, 0, NumChars));
|
||||
break;
|
||||
case 16:
|
||||
NumberReg = new Regex ("^[0-9a-f]*",
|
||||
RegexOptions.IgnoreCase);
|
||||
NumberMatch = NumberReg.Match (
|
||||
new string(Number, 0, NumChars));
|
||||
break;
|
||||
case 10:
|
||||
default:
|
||||
NumberReg = new Regex (
|
||||
"^[+-]?\\d*\\.?\\d*(e?[+-]?\\d*)",
|
||||
RegexOptions.IgnoreCase);
|
||||
NumberMatch = NumberReg.Match (
|
||||
new string(Number, 0, NumChars));
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
|
||||
// we found a match, try to convert it
|
||||
if (NumberMatch.Success) {
|
||||
try {
|
||||
switch (Base) {
|
||||
case 10:
|
||||
return
|
||||
Convert.ToDouble (
|
||||
NumberMatch.Value);
|
||||
case 8:
|
||||
case 16:
|
||||
return (double)
|
||||
Convert.ToInt64 (
|
||||
NumberMatch.Value,
|
||||
Base);
|
||||
default:
|
||||
return (double)0;
|
||||
}
|
||||
}
|
||||
catch {
|
||||
throw new OverflowException();
|
||||
}
|
||||
}
|
||||
else {
|
||||
return (double)0;
|
||||
}
|
||||
}
|
||||
|
||||
// Val on a char type is pretty simple '9' = 9, 'a' = exception
|
||||
public static int Val (char Expression) {
|
||||
if (char.IsDigit(Expression)) {
|
||||
return Expression - '0';
|
||||
}
|
||||
else {
|
||||
throw new ArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
// if it's an object, and we can't convert
|
||||
// it to a string, it's an exception
|
||||
public static double Val (System.Object Expression) {
|
||||
// always check for null first
|
||||
if (Expression == null) {
|
||||
throw new ArgumentNullException ("Expression",
|
||||
"Value cannot be null");
|
||||
}
|
||||
|
||||
try {
|
||||
return Val (CastToString (Expression));
|
||||
}
|
||||
catch {
|
||||
throw new ArgumentException(
|
||||
"Type of argument 'Expression' is '" +
|
||||
Expression.GetType().FullName +
|
||||
"', which can nt be converted to numeric.");
|
||||
}
|
||||
}
|
||||
// Events
|
||||
}
|
||||
}
|
||||
@@ -1,478 +0,0 @@
|
||||
//
|
||||
// DateAndTime.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Microsoft.VisualBasic
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class DateAndTime {
|
||||
public static string DateString {
|
||||
get {
|
||||
return DateTime.Today.ToString("MM-dd-yyyy");
|
||||
}
|
||||
|
||||
set {
|
||||
string [] formats = { "M-d-yyyy", "M-d-y", "M/d/yyyy", "M/d/y" };
|
||||
|
||||
try {
|
||||
DateTime dtToday = DateTime.ParseExact(value, formats,
|
||||
DateTimeFormatInfo.CurrentInfo,
|
||||
DateTimeStyles.None);
|
||||
|
||||
Today = dtToday;
|
||||
}
|
||||
catch {
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static System.DateTime Today {
|
||||
get { return DateTime.Today; }
|
||||
set {
|
||||
// FIXME: This needs to use some OS specific code
|
||||
// I've already written it for Windows
|
||||
// and Unix won't be hard, but need an
|
||||
// OS object from the compiler
|
||||
// OS specific code needs to check permissions
|
||||
// too, and throw an ArgumentOutOfRangeException
|
||||
// if no permissions
|
||||
// DateTime dtNow = DateTime.Now;
|
||||
//
|
||||
// SysTime.LocalTime = new DateTime(value.Year,
|
||||
// value.Month, value.Day, dtNow.Hour,
|
||||
// dtNow.Minute, dtNow.Second, dtNow.Millisecond);
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static double Timer {
|
||||
get {
|
||||
DateTime DTNow = DateTime.Now;
|
||||
|
||||
return DTNow.Hour * 3600 + DTNow.Minute * 60 +
|
||||
DTNow.Second + DTNow.Millisecond /
|
||||
1000D;
|
||||
}
|
||||
}
|
||||
|
||||
public static System.DateTime Now {
|
||||
get { return DateTime.Now; }
|
||||
}
|
||||
|
||||
public static System.DateTime TimeOfDay {
|
||||
get {
|
||||
TimeSpan TSpan = DateTime.Now.TimeOfDay;
|
||||
|
||||
return new DateTime(1, 1, 1, TSpan.Hours,
|
||||
TSpan.Minutes, TSpan.Seconds,
|
||||
TSpan.Milliseconds);
|
||||
}
|
||||
set {
|
||||
// FIXME: This needs to use some OS specific code
|
||||
// I've already written it for Windows
|
||||
// and Unix won't be hard, but need an
|
||||
// OS object from the compiler
|
||||
// OS specific code needs to check permissions
|
||||
// too, and throw an ArgumentOutOfRangeException
|
||||
// if no permissions
|
||||
// DateTime dtToday = DateTime.Today;
|
||||
//
|
||||
// SysTime.LocalTime = new DateTime(dtToday.Year,
|
||||
// dtToday.Month, dtToday.Day, value.Hour,
|
||||
// value.Minute, value.Second, value.Millisecond);
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static string TimeString {
|
||||
get { return DateTime.Now.ToString("HH:mm:ss"); }
|
||||
set {
|
||||
string format = "HH:mm:ss";
|
||||
|
||||
try {
|
||||
DateTime dtToday = DateTime.ParseExact(value, format,
|
||||
DateTimeFormatInfo.CurrentInfo,
|
||||
DateTimeStyles.None);
|
||||
|
||||
TimeOfDay = dtToday;
|
||||
}
|
||||
catch {
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Methods
|
||||
public static System.DateTime DateAdd (DateInterval Interval,
|
||||
double Number, System.DateTime DateValue) {
|
||||
|
||||
switch (Interval) {
|
||||
case DateInterval.Year:
|
||||
return DateValue.AddYears((int)Number);
|
||||
case DateInterval.Quarter:
|
||||
return DateValue.AddMonths((int)Number * 3);
|
||||
case DateInterval.Month:
|
||||
return DateValue.AddMonths((int)Number);
|
||||
case DateInterval.WeekOfYear:
|
||||
return DateValue.AddDays(Number * 7);
|
||||
case DateInterval.Day:
|
||||
case DateInterval.DayOfYear:
|
||||
case DateInterval.Weekday:
|
||||
return DateValue.AddDays(Number);
|
||||
case DateInterval.Hour:
|
||||
return DateValue.AddHours(Number);
|
||||
case DateInterval.Minute:
|
||||
return DateValue.AddMinutes(Number);
|
||||
case DateInterval.Second:
|
||||
return DateValue.AddSeconds(Number);
|
||||
default:
|
||||
throw new ArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
private static DayOfWeek GetDayRule(FirstDayOfWeek StartOfWeek, DayOfWeek DayRule)
|
||||
{
|
||||
switch (StartOfWeek) {
|
||||
case FirstDayOfWeek.System:
|
||||
return DayRule;
|
||||
case FirstDayOfWeek.Sunday:
|
||||
return DayOfWeek.Sunday;
|
||||
case FirstDayOfWeek.Monday:
|
||||
return DayOfWeek.Monday;
|
||||
case FirstDayOfWeek.Tuesday:
|
||||
return DayOfWeek.Tuesday;
|
||||
case FirstDayOfWeek.Wednesday:
|
||||
return DayOfWeek.Wednesday;
|
||||
case FirstDayOfWeek.Thursday:
|
||||
return DayOfWeek.Thursday;
|
||||
case FirstDayOfWeek.Friday:
|
||||
return DayOfWeek.Friday;
|
||||
case FirstDayOfWeek.Saturday:
|
||||
return DayOfWeek.Saturday;
|
||||
default:
|
||||
throw new ArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
private static CalendarWeekRule GetWeekRule(FirstWeekOfYear StartOfYear, CalendarWeekRule WeekRule)
|
||||
{
|
||||
switch (StartOfYear) {
|
||||
case FirstWeekOfYear.System:
|
||||
return WeekRule;
|
||||
case FirstWeekOfYear.FirstFourDays:
|
||||
return CalendarWeekRule.FirstFourDayWeek;
|
||||
case FirstWeekOfYear.FirstFullWeek:
|
||||
return CalendarWeekRule.FirstFullWeek;
|
||||
case FirstWeekOfYear.Jan1:
|
||||
return CalendarWeekRule.FirstDay;
|
||||
default:
|
||||
throw new ArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
public static long DateDiff (DateInterval Interval,
|
||||
System.DateTime Date1, System.DateTime Date2,
|
||||
[Optional] [DefaultValue(FirstDayOfWeek.Sunday)]
|
||||
FirstDayOfWeek StartOfWeek,
|
||||
[Optional] [DefaultValue(FirstWeekOfYear.Jan1)]
|
||||
FirstWeekOfYear StartOfYear)
|
||||
{
|
||||
|
||||
int YearMonths;
|
||||
int YearQuarters;
|
||||
int YearWeeks;
|
||||
CalendarWeekRule WeekRule = CalendarWeekRule.FirstDay;
|
||||
DayOfWeek DayRule = DateTimeFormatInfo.CurrentInfo.FirstDayOfWeek;
|
||||
Calendar CurCalendar = CultureInfo.CurrentCulture.Calendar;
|
||||
|
||||
switch (Interval) {
|
||||
case DateInterval.Year:
|
||||
return Date2.Year - Date1.Year;
|
||||
case DateInterval.Quarter:
|
||||
YearQuarters = (Date2.Year - Date1.Year) * 4;
|
||||
return Date2.Month / 4 - Date1.Month / 4 + YearQuarters;
|
||||
case DateInterval.Month:
|
||||
YearMonths = (Date2.Year - Date1.Year) * 12;
|
||||
return Date2.Month - Date1.Month + YearMonths;
|
||||
case DateInterval.WeekOfYear:
|
||||
YearWeeks = (Date2.Year - Date1.Year) * 53;
|
||||
DayRule = GetDayRule(StartOfWeek, DayRule);
|
||||
WeekRule = GetWeekRule(StartOfYear, WeekRule);
|
||||
return CurCalendar.GetWeekOfYear(Date2, WeekRule, DayRule) -
|
||||
CurCalendar.GetWeekOfYear(Date1,WeekRule, DayRule) +
|
||||
YearWeeks;
|
||||
case DateInterval.Weekday:
|
||||
return ((TimeSpan)(Date2.Subtract(Date1))).Days / 7;
|
||||
case DateInterval.DayOfYear:
|
||||
case DateInterval.Day:
|
||||
return ((TimeSpan)(Date2.Subtract(Date1))).Days;
|
||||
case DateInterval.Hour:
|
||||
return ((TimeSpan)(Date2.Subtract(Date1))).Hours;
|
||||
case DateInterval.Minute:
|
||||
return ((TimeSpan)(Date2.Subtract(Date1))).Minutes;
|
||||
case DateInterval.Second:
|
||||
return ((TimeSpan)(Date2.Subtract(Date1))).Seconds;
|
||||
default:
|
||||
throw new ArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
private static int ConvertWeekDay(DayOfWeek Day, int Offset)
|
||||
{
|
||||
|
||||
int Weekday = (int)Day + Offset;
|
||||
|
||||
if (Weekday > 7) {
|
||||
Weekday -= 7;
|
||||
}
|
||||
|
||||
switch((DayOfWeek)Weekday) {
|
||||
case DayOfWeek.Sunday:
|
||||
return (int)FirstDayOfWeek.Sunday;
|
||||
case DayOfWeek.Monday:
|
||||
return (int)FirstDayOfWeek.Monday;
|
||||
case DayOfWeek.Tuesday:
|
||||
return (int)FirstDayOfWeek.Tuesday;
|
||||
case DayOfWeek.Wednesday:
|
||||
return (int)FirstDayOfWeek.Wednesday;
|
||||
case DayOfWeek.Thursday:
|
||||
return (int)FirstDayOfWeek.Thursday;
|
||||
case DayOfWeek.Friday:
|
||||
return (int)FirstDayOfWeek.Friday;
|
||||
case DayOfWeek.Saturday:
|
||||
return (int)FirstDayOfWeek.Saturday;
|
||||
default:
|
||||
throw new ArgumentException();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static int DatePart
|
||||
(
|
||||
Microsoft.VisualBasic.DateInterval Interval,
|
||||
System.DateTime DateValue,
|
||||
[Optional] [DefaultValue(FirstDayOfWeek.Sunday)]
|
||||
FirstDayOfWeek StartOfWeek,
|
||||
[Optional] [DefaultValue(FirstWeekOfYear.Jan1)]
|
||||
FirstWeekOfYear StartOfYear) {
|
||||
|
||||
CalendarWeekRule WeekRule = CalendarWeekRule.FirstDay;
|
||||
DayOfWeek DayRule = DateTimeFormatInfo.CurrentInfo.FirstDayOfWeek;
|
||||
Calendar CurCalendar = CultureInfo.CurrentCulture.Calendar;
|
||||
|
||||
switch (Interval) {
|
||||
case DateInterval.Year:
|
||||
return DateValue.Year;
|
||||
case DateInterval.Quarter:
|
||||
return DateValue.Month / 4 + 1;
|
||||
case DateInterval.Month:
|
||||
return DateValue.Month;
|
||||
case DateInterval.WeekOfYear:
|
||||
DayRule = GetDayRule(StartOfWeek, DayRule);
|
||||
WeekRule = GetWeekRule(StartOfYear, WeekRule);
|
||||
return CurCalendar.GetWeekOfYear(DateValue, WeekRule, DayRule);
|
||||
case DateInterval.Weekday:
|
||||
return ConvertWeekDay(DateValue.DayOfWeek, (int)DayRule);
|
||||
case DateInterval.DayOfYear:
|
||||
return DateValue.DayOfYear;
|
||||
case DateInterval.Day:
|
||||
return DateValue.Day;
|
||||
case DateInterval.Hour:
|
||||
return DateValue.Hour;
|
||||
case DateInterval.Minute:
|
||||
return DateValue.Minute;
|
||||
case DateInterval.Second:
|
||||
return DateValue.Second;
|
||||
default:
|
||||
throw new ArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
private static DateInterval DateIntervalFromString(string Interval)
|
||||
{
|
||||
switch (Interval) {
|
||||
case "yyyy":
|
||||
return DateInterval.Year;
|
||||
case "q":
|
||||
return DateInterval.Quarter;
|
||||
case "m":
|
||||
return DateInterval.Month;
|
||||
case "ww":
|
||||
return DateInterval.WeekOfYear;
|
||||
case "w":
|
||||
return DateInterval.Weekday;
|
||||
case "d":
|
||||
return DateInterval.Day;
|
||||
case "y":
|
||||
return DateInterval.DayOfYear;
|
||||
case "h":
|
||||
return DateInterval.Hour;
|
||||
case "n":
|
||||
return DateInterval.Minute;
|
||||
case "s":
|
||||
return DateInterval.Second;
|
||||
default:
|
||||
throw new ArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
public static System.DateTime DateAdd (string Interval,
|
||||
double Number, System.Object DateValue)
|
||||
{
|
||||
if (DateValue == null) {
|
||||
throw new ArgumentNullException("DateValue", "Value can not be null.");
|
||||
}
|
||||
if (!(DateValue is DateTime)) {
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
|
||||
return DateAdd(DateIntervalFromString(Interval), Number, (DateTime)DateValue);
|
||||
}
|
||||
|
||||
public static System.Int64 DateDiff (string Interval,
|
||||
System.Object Date1, System.Object Date2,
|
||||
[Optional] [DefaultValue(FirstDayOfWeek.Sunday)]
|
||||
FirstDayOfWeek StartOfWeek,
|
||||
[Optional] [DefaultValue(FirstWeekOfYear.Jan1)]
|
||||
FirstWeekOfYear StartOfYear)
|
||||
{
|
||||
if (Date1 == null) {
|
||||
throw new ArgumentNullException("Date1", "Value can not be null.");
|
||||
}
|
||||
if (Date2 == null) {
|
||||
throw new ArgumentNullException("Date2", "Value can not be null.");
|
||||
}
|
||||
if (!(Date1 is DateTime)) {
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
if (!(Date2 is DateTime)) {
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
|
||||
return DateDiff(DateIntervalFromString(Interval), (DateTime)Date1,
|
||||
(DateTime)Date2, StartOfWeek, StartOfYear);
|
||||
|
||||
}
|
||||
|
||||
public static System.Int32 DatePart (string Interval,
|
||||
System.Object DateValue,
|
||||
[Optional] [DefaultValue(FirstDayOfWeek.Sunday)]
|
||||
FirstDayOfWeek StartOfWeek,
|
||||
[Optional] [DefaultValue(FirstWeekOfYear.Jan1)]
|
||||
FirstWeekOfYear StartOfYear)
|
||||
{
|
||||
if (DateValue == null) {
|
||||
throw new ArgumentNullException("DateValue", "Value can not be null.");
|
||||
}
|
||||
if (!(DateValue is DateTime)) {
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
|
||||
|
||||
return DatePart(DateIntervalFromString(Interval),
|
||||
(DateTime)DateValue, StartOfWeek, StartOfYear);
|
||||
}
|
||||
|
||||
public static System.DateTime DateSerial (int Year, int Month, int Day)
|
||||
{
|
||||
return new DateTime(Year, Month, Day);
|
||||
}
|
||||
|
||||
public static System.DateTime TimeSerial (int Hour, int Minute, int Second)
|
||||
{
|
||||
return new DateTime(1, 1, 1, Hour, Minute, Second);
|
||||
}
|
||||
|
||||
public static System.DateTime DateValue (string StringDate)
|
||||
{
|
||||
return DateTime.Parse(StringDate);
|
||||
}
|
||||
|
||||
public static System.DateTime TimeValue (string StringTime)
|
||||
{
|
||||
return DateTime.Parse(StringTime);
|
||||
}
|
||||
|
||||
public static int Year (System.DateTime DateValue)
|
||||
{
|
||||
return DateValue.Year;
|
||||
}
|
||||
|
||||
public static int Month (System.DateTime DateValue)
|
||||
{
|
||||
return DateValue.Month;
|
||||
}
|
||||
|
||||
public static int Day (System.DateTime DateValue)
|
||||
{
|
||||
return DateValue.Day;
|
||||
}
|
||||
|
||||
public static int Hour (System.DateTime TimeValue)
|
||||
{
|
||||
return TimeValue.Hour;
|
||||
}
|
||||
|
||||
public static int Minute (System.DateTime TimeValue)
|
||||
{
|
||||
return TimeValue.Minute;
|
||||
}
|
||||
|
||||
public static int Second (System.DateTime TimeValue)
|
||||
{
|
||||
return TimeValue.Second;
|
||||
}
|
||||
|
||||
public static int Weekday (System.DateTime DateValue,
|
||||
[Optional] [DefaultValue(FirstDayOfWeek.Sunday)]
|
||||
FirstDayOfWeek StartOfWeek)
|
||||
{
|
||||
return DatePart(DateInterval.Weekday, DateValue, StartOfWeek, FirstWeekOfYear.System);
|
||||
}
|
||||
|
||||
public static System.String MonthName (int Month,
|
||||
[Optional] [DefaultValue(false)] bool Abbreviate)
|
||||
{
|
||||
if (Month < 1 || Month > 13) {
|
||||
throw new ArgumentException();
|
||||
}
|
||||
if (Abbreviate) {
|
||||
return CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedMonthName(Month);
|
||||
}
|
||||
else {
|
||||
return CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(Month);
|
||||
}
|
||||
}
|
||||
|
||||
public static System.String WeekdayName (int Weekday,
|
||||
[Optional] [DefaultValue(false)] System.Boolean Abbreviate,
|
||||
[Optional] [DefaultValue(FirstDayOfWeek.System)]
|
||||
FirstDayOfWeek FirstDayOfWeekValue)
|
||||
{
|
||||
if (Weekday < 1 || Weekday > 7) {
|
||||
throw new ArgumentException();
|
||||
}
|
||||
Weekday += (int)FirstDayOfWeekValue;
|
||||
if (Weekday > 7) {
|
||||
Weekday -= 7;
|
||||
}
|
||||
if (Abbreviate) {
|
||||
return CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedDayName((DayOfWeek)Weekday);
|
||||
}
|
||||
else {
|
||||
return CultureInfo.CurrentCulture.DateTimeFormat.GetDayName((DayOfWeek)Weekday);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
//
|
||||
// DateFormat.cs
|
||||
//
|
||||
// Author:
|
||||
// Martin Adoue ([email protected])
|
||||
//
|
||||
// (C) 2002 Martin Adoue
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
|
||||
/// <summary>
|
||||
/// When you call the DateValue function, you can use the following
|
||||
/// enumeration members in your code in place of the actual values.
|
||||
/// </summary>
|
||||
public enum DateFormat : int {
|
||||
/// <summary>
|
||||
/// For real numbers, displays a date and time. If the number has no fractional part, displays only a date. If the number has no integer part, displays time only. Date and time display is determined by your computer's regional settings.
|
||||
/// </summary>
|
||||
GeneralDate = 0,
|
||||
/// <summary>
|
||||
/// Displays a date using the long-date format specified in your computer's regional settings.
|
||||
/// </summary>
|
||||
LongDate = 1,
|
||||
/// <summary>
|
||||
/// Displays a date using the short-date format specified in your computer's regional settings.
|
||||
/// </summary>
|
||||
ShortDate = 2,
|
||||
/// <summary>
|
||||
/// Displays a time using the long-time format specified in your computer's regional settings.
|
||||
/// </summary>
|
||||
LongTime = 3,
|
||||
/// <summary>
|
||||
/// Displays a time using the short-time format specified in your computer's regional settings.
|
||||
/// </summary>
|
||||
ShortTime = 4
|
||||
};
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
//
|
||||
// DateInterval.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
public enum DateInterval : int {
|
||||
Year = 0,
|
||||
Quarter = 1,
|
||||
Month = 2,
|
||||
DayOfYear = 3,
|
||||
Day = 4,
|
||||
WeekOfYear = 5,
|
||||
Weekday = 6,
|
||||
Hour = 7,
|
||||
Minute = 8,
|
||||
Second = 9
|
||||
};
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
//
|
||||
// DueDate.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
public enum DueDate : int {
|
||||
EndOfPeriod = 0,
|
||||
BegOfPeriod = 1
|
||||
};
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
//
|
||||
// ErrObject.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic
|
||||
{
|
||||
sealed public class ErrObject {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
[MonoTODO]
|
||||
public System.Int32 HelpContext { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public System.Int32 LastDllError { get { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public System.Int32 Number { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public System.Int32 Erl { get { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public System.String Source { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public System.String HelpFile { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public System.String Description { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } }
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public System.Exception GetException () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public void Clear () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public void Raise (System.Int32 Number, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object Source, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object Description, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object HelpFile, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object HelpContext) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// FileAttribute.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
[System.FlagsAttribute]
|
||||
public enum FileAttribute : int {
|
||||
Normal = 0,
|
||||
ReadOnly = 1,
|
||||
Hidden = 2,
|
||||
System = 4,
|
||||
Volume = 8,
|
||||
Directory = 16,
|
||||
Archive = 32
|
||||
};
|
||||
}
|
||||
@@ -1,189 +0,0 @@
|
||||
//
|
||||
// FileSystem.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class FileSystem {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static void ChDir (System.String Path) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void ChDrive (System.Char Drive) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void ChDrive (System.String Drive) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String CurDir () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String CurDir (System.Char Drive) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String Dir () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String Dir (System.String Pathname, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.FileAttribute Attributes) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void MkDir (System.String Path) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void RmDir (System.String Path) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileCopy (System.String Source, System.String Destination) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.DateTime FileDateTime (System.String PathName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int64 FileLen (System.String PathName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.FileAttribute GetAttr (System.String PathName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Kill (System.String PathName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void SetAttr (System.String PathName, Microsoft.VisualBasic.FileAttribute Attributes) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileOpen (System.Int32 FileNumber, System.String FileName, Microsoft.VisualBasic.OpenMode Mode, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] Microsoft.VisualBasic.OpenAccess Access, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] Microsoft.VisualBasic.OpenShare Share, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int32 RecordLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileClose (params System.Int32[] FileNumbers) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGetObject (System.Int32 FileNumber, ref System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.ValueType Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Array Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean ArrayIsDynamic, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Boolean Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Byte Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Int16 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Int32 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Int64 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Char Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Single Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Double Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Decimal Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.String Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.DateTime Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePutObject (System.Int32 FileNumber, System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
[System.ObsoleteAttribute("Use FilePutObject to write Object types, or coerce FileNumber and RecordNumber to Integer for writing non-Object types", false)]
|
||||
public static void FilePut (System.Object FileNumber, System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Object RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.ValueType Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Array Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean ArrayIsDynamic, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Boolean Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Byte Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Int16 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Int32 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Int64 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Char Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Single Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Double Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Decimal Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.String Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.DateTime Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Print (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void PrintLine (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Object Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Boolean Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Byte Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Int16 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Int32 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Int64 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Char Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Single Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Double Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Decimal Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.String Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.DateTime Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Write (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void WriteLine (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String InputString (System.Int32 FileNumber, System.Int32 CharCount) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String LineInput (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Lock (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Lock (System.Int32 FileNumber, System.Int64 Record) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Lock (System.Int32 FileNumber, System.Int64 FromRecord, System.Int64 ToRecord) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Unlock (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Unlock (System.Int32 FileNumber, System.Int64 Record) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Unlock (System.Int32 FileNumber, System.Int64 FromRecord, System.Int64 ToRecord) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileWidth (System.Int32 FileNumber, System.Int32 RecordWidth) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int32 FreeFile () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Seek (System.Int32 FileNumber, System.Int64 Position) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int64 Seek (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean EOF (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int64 Loc (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int64 LOF (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.TabInfo TAB () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.TabInfo TAB (System.Int16 Column) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.SpcInfo SPC (System.Int16 Count) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.OpenMode FileAttr (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Reset () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Rename (System.String OldPath, System.String NewPath) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
//
|
||||
// Financial.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class Financial {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static System.Double DDB (System.Double Cost, System.Double Salvage, System.Double Life, System.Double Period, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(2)] System.Double Factor) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double FV (System.Double Rate, System.Double NPer, System.Double Pmt, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double IPmt (System.Double Rate, System.Double Per, System.Double NPer, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double IRR (ref System.Double[] ValueArray, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0.1)] ref System.Double Guess) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double MIRR (ref System.Double[] ValueArray, ref System.Double FinanceRate, ref System.Double ReinvestRate) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double NPer (System.Double Rate, System.Double Pmt, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double NPV (System.Double Rate, ref System.Double[] ValueArray) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double Pmt (System.Double Rate, System.Double NPer, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double PPmt (System.Double Rate, System.Double Per, System.Double NPer, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double PV (System.Double Rate, System.Double NPer, System.Double Pmt, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double Rate (System.Double NPer, System.Double Pmt, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0.1)] System.Double Guess) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double SLN (System.Double Cost, System.Double Salvage, System.Double Life) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double SYD (System.Double Cost, System.Double Salvage, System.Double Life, System.Double Period) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// FirstDayOfWeek.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
public enum FirstDayOfWeek : int {
|
||||
System = 0,
|
||||
Sunday = 1,
|
||||
Monday = 2,
|
||||
Tuesday = 3,
|
||||
Wednesday = 4,
|
||||
Thursday = 5,
|
||||
Friday = 6,
|
||||
Saturday = 7
|
||||
};
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
//
|
||||
// FirstWeekOfYear.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
public enum FirstWeekOfYear : int {
|
||||
System = 0,
|
||||
Jan1 = 1,
|
||||
FirstFourDays = 2,
|
||||
FirstFullWeek = 3
|
||||
};
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
//
|
||||
// Globals.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class Globals {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
[MonoTODO]
|
||||
public static System.String ScriptEngine { get { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public static System.Int32 ScriptEngineMajorVersion { get { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public static System.Int32 ScriptEngineMinorVersion { get { throw new NotImplementedException (); } }
|
||||
[MonoTODO]
|
||||
public static System.Int32 ScriptEngineBuildVersion { get { throw new NotImplementedException (); } }
|
||||
// Methods
|
||||
// Events
|
||||
};
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
//
|
||||
// Information.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class Information {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.ErrObject Err () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public static System.Int32 Erl () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean IsArray (System.Object VarName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean IsDate (System.Object Expression) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean IsDBNull (System.Object Expression) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean IsNothing (System.Object Expression) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean IsError (System.Object Expression) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean IsReference (System.Object Expression) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean IsNumeric (System.Object Expression) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int32 LBound (System.Array Array, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(1)] System.Int32 Rank) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int32 UBound (System.Array Array, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(1)] System.Int32 Rank) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String TypeName (System.Object VarName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String SystemTypeName (System.String VbName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String VbTypeName (System.String UrtName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int32 QBColor (System.Int32 Color) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int32 RGB (System.Int32 Red, System.Int32 Green, System.Int32 Blue) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.VariantType VarType (System.Object VarName) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
//
|
||||
// Interaction.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Auto)]
|
||||
sealed public class Interaction {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.Int32 Shell (System.String Pathname, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(2)] Microsoft.VisualBasic.AppWinStyle Style, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean Wait, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int32 Timeout) { return 0;}
|
||||
public static void AppActivate (System.Int32 ProcessId) { }
|
||||
public static void AppActivate (System.String Title) { }
|
||||
public static System.String Command () { return "";}
|
||||
public static System.String Environ (System.Int32 Expression) { return "";}
|
||||
public static System.String Environ (System.String Expression) { return "";}
|
||||
public static void Beep () { }
|
||||
public static System.String InputBox (System.String Prompt, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue("")] System.String Title, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue("")] System.String DefaultResponse, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int32 XPos, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int32 YPos) { return "";}
|
||||
public static Microsoft.VisualBasic.MsgBoxResult MsgBox (System.Object Prompt, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.MsgBoxStyle Buttons, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object Title) { return 0;}
|
||||
public static System.Object CallByName (System.Object ObjectRef, System.String ProcName, Microsoft.VisualBasic.CallType UseCallType, params System.Object[] Args) { return null;}
|
||||
public static System.Object Choose (System.Double Index, params System.Object[] Choice) { return null;}
|
||||
public static System.Object IIf (System.Boolean Expression, System.Object TruePart, System.Object FalsePart) { return null;}
|
||||
public static System.String Partition (System.Int64 Number, System.Int64 Start, System.Int64 Stop, System.Int64 Interval) { return "";}
|
||||
public static System.Object Switch (params System.Object[] VarExpr) { return null;}
|
||||
public static void DeleteSetting (System.String AppName, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.String Section, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.String Key) { }
|
||||
public static System.String[,] GetAllSettings (System.String AppName, System.String Section) { return null;}
|
||||
public static System.String GetSetting (System.String AppName, System.String Section, System.String Key, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue("")] System.String Default) { return "";}
|
||||
public static void SaveSetting (System.String AppName, System.String Section, System.String Key, System.String Setting) { }
|
||||
public static System.Object CreateObject (System.String ProgId, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue("")] System.String ServerName) { return null;}
|
||||
public static System.Object GetObject ([System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.String PathName, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.String Class) { return null;}
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
//
|
||||
// BooleanType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class BooleanType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.Boolean FromString (System.String Value) { return System.Boolean.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean FromObject (System.Object Value) { throw new NotImplementedException(); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
//
|
||||
// ByteType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class ByteType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.Byte FromString (System.String Value) { return System.Byte.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Byte FromObject (System.Object Value) { throw new NotImplementedException(); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
//
|
||||
// CharArrayType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
sealed public class CharArrayType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static System.Char[] FromString (System.String Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Char[] FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
//
|
||||
// CharType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
sealed public class CharType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static System.Char FromString (System.String Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Char FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-28
@@ -1,28 +0,0 @@
|
||||
//
|
||||
// DateType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
sealed public class DateType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.DateTime FromString (System.String Value) { return System.DateTime.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.DateTime FromString (System.String Value, System.Globalization.CultureInfo culture) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.DateTime FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-34
@@ -1,34 +0,0 @@
|
||||
//
|
||||
// DecimalType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class DecimalType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static System.Decimal FromBoolean (System.Boolean Value) { throw new NotImplementedException (); }
|
||||
public static System.Decimal FromString (System.String Value) { return System.Decimal.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Decimal FromString (System.String Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Decimal FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Decimal FromObject (System.Object Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Decimal Parse (System.String Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-33
@@ -1,33 +0,0 @@
|
||||
//
|
||||
// DoubleType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
sealed public class DoubleType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.Double FromString (System.String Value) { return System.Double.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Double FromString (System.String Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double FromObject (System.Object Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
public static System.Double Parse (System.String Value) { return System.Double.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Double Parse (System.String Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// ExceptionUtils.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic.CompilerServices {
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Auto)]
|
||||
sealed public class ExceptionUtils {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-41
@@ -1,41 +0,0 @@
|
||||
//
|
||||
// FlowControl.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
sealed public class FlowControl {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static System.Boolean ForNextCheckR4 (System.Single count, System.Single limit, System.Single StepValue) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean ForNextCheckR8 (System.Double count, System.Double limit, System.Double StepValue) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean ForNextCheckDec (System.Decimal count, System.Decimal limit, System.Decimal StepValue) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean ForLoopInitObj (System.Object Counter, System.Object Start, System.Object Limit, System.Object StepValue, ref System.Object LoopForResult, ref System.Object CounterResult) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean ForNextCheckObj (System.Object Counter, System.Object LoopObj, ref System.Object CounterResult) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Collections.IEnumerator ForEachInArr (System.Array ary) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Collections.IEnumerator ForEachInObj (System.Object obj) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean ForEachNextObj (ref System.Object obj, ref System.Collections.IEnumerator enumerator) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void CheckForSyncLockOnValueType (System.Object obj) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-24
@@ -1,24 +0,0 @@
|
||||
//
|
||||
// HostServices.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
sealed public class HostServices {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.CompilerServices.IVbHost VBHost { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } }
|
||||
// Methods
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// IVbHost.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic.CompilerServices {
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public interface IVbHost {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
System.String GetWindowTitle ();
|
||||
// System.Windows.Forms.IWin32Window GetParentWindow ();
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
//
|
||||
// IncompleteInitialization.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic.CompilerServices {
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[MonoTODO]
|
||||
sealed public class IncompleteInitialization : System.Exception, System.Runtime.Serialization.ISerializable {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
//
|
||||
// IntegerType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
sealed public class IntegerType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.Int32 FromString (System.String Value) { return System.Int32.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Int32 FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-51
@@ -1,51 +0,0 @@
|
||||
//
|
||||
// LateBinding.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class LateBinding {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
[System.Diagnostics.DebuggerHiddenAttribute]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Object LateGet (System.Object o, System.Type objType, System.String name, System.Object[] args, System.String[] paramnames, System.Boolean[] CopyBack) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
[System.Diagnostics.DebuggerHiddenAttribute]
|
||||
public static void LateSetComplex (System.Object o, System.Type objType, System.String name, System.Object[] args, System.String[] paramnames, System.Boolean OptimisticSet, System.Boolean RValueBase) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
[System.Diagnostics.DebuggerHiddenAttribute]
|
||||
public static void LateSet (System.Object o, System.Type objType, System.String name, System.Object[] args, System.String[] paramnames) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
[System.Diagnostics.DebuggerHiddenAttribute]
|
||||
public static System.Object LateIndexGet (System.Object o, System.Object[] args, System.String[] paramnames) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
[System.Diagnostics.DebuggerHiddenAttribute]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static void LateIndexSetComplex (System.Object o, System.Object[] args, System.String[] paramnames, System.Boolean OptimisticSet, System.Boolean RValueBase) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
[System.Diagnostics.DebuggerHiddenAttribute]
|
||||
public static void LateIndexSet (System.Object o, System.Object[] args, System.String[] paramnames) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
[System.Diagnostics.DebuggerHiddenAttribute]
|
||||
public static void LateCall (System.Object o, System.Type objType, System.String name, System.Object[] args, System.String[] paramnames, System.Boolean[] CopyBack) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
//
|
||||
// LongType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class LongType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.Int64 FromString (System.String Value) { return System.Int64.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Int64 FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-58
@@ -1,58 +0,0 @@
|
||||
//
|
||||
// ObjectType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
sealed public class ObjectType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static System.Int32 ObjTst (System.Object o1, System.Object o2, System.Boolean TextCompare) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object PlusObj (System.Object obj) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object NegObj (System.Object obj) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object NotObj (System.Object obj) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object BitAndObj (System.Object obj1, System.Object obj2) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object BitOrObj (System.Object obj1, System.Object obj2) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object BitXorObj (System.Object obj1, System.Object obj2) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object AddObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object SubObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object MulObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object DivObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object PowObj (System.Object obj1, System.Object obj2) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object ModObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object IDivObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object XorObj (System.Object obj1, System.Object obj2) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean LikeObj (System.Object vLeft, System.Object vRight, Microsoft.VisualBasic.CompareMethod CompareOption) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object StrCatObj (System.Object vLeft, System.Object vRight) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object GetObjectValuePrimitive (System.Object o) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
//
|
||||
// OptionCompareAttribute.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
// Martin Adoue ([email protected])
|
||||
//
|
||||
// (C) 2002 Ximian Inc.
|
||||
//
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices {
|
||||
[MonoTODO]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[AttributeUsage(AttributeTargets.Parameter)]
|
||||
[StructLayoutAttribute(LayoutKind.Auto)]
|
||||
sealed public class OptionCompareAttribute : Attribute {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
// Events
|
||||
public OptionCompareAttribute()
|
||||
{
|
||||
//FIXME: should this do something?
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// OptionTextAttribute.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic.CompilerServices {
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Class)]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[MonoTODO]
|
||||
sealed public class OptionTextAttribute : System.Attribute {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-80
@@ -1,80 +0,0 @@
|
||||
//
|
||||
// ProjectData.cs
|
||||
//
|
||||
// Authors:
|
||||
// Martin Adoue ([email protected])
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Ximian Inc.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for ProjectData.
|
||||
/// </summary>
|
||||
|
||||
[MonoTODO]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[StructLayout(LayoutKind.Auto)]
|
||||
public class ProjectData{
|
||||
|
||||
private static System.Exception projectError;
|
||||
private static int erl;
|
||||
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for ClearProjectError
|
||||
/// </summary>
|
||||
public static void ClearProjectError()
|
||||
{
|
||||
projectError = null;
|
||||
erl = 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for SetProjectError
|
||||
/// </summary>
|
||||
/// <param name="ex">FIXME: Required. Summary description for ex</param>
|
||||
[MonoTODO]
|
||||
public static void SetProjectError(System.Exception ex)
|
||||
{
|
||||
SetProjectError(ex, 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for SetProjectError
|
||||
/// </summary>
|
||||
/// <param name="ex">FIXME: Required. Summary description for ex</param>
|
||||
/// <param name="lErl">FIXME: Required. Summary description for lErl</param>
|
||||
[MonoTODO]
|
||||
public static void SetProjectError(System.Exception ex, int lErl)
|
||||
{
|
||||
projectError = ex;
|
||||
erl = lErl;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
[MonoTODO]
|
||||
public static void EndApp()
|
||||
{
|
||||
//FIXME
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
[MonoTODO]
|
||||
protected static void Finalize()
|
||||
{
|
||||
//FIXME
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
//
|
||||
// ShortType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
sealed public class ShortType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.Int16 FromString (System.String Value) { return System.Int16.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Int16 FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-30
@@ -1,30 +0,0 @@
|
||||
//
|
||||
// SingleType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class SingleType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.Single FromString (System.String Value) { return System.Single.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Single FromString (System.String Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Single FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Single FromObject (System.Object Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// StandardModuleAttribute.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic.CompilerServices {
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Class)]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Auto)]
|
||||
sealed public class StandardModuleAttribute : System.Attribute {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// StaticLocalInitFlag.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic.CompilerServices {
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Auto)]
|
||||
sealed public class StaticLocalInitFlag {
|
||||
// Declarations
|
||||
public System.Int16 State = (System.Int16)(0);
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-61
@@ -1,61 +0,0 @@
|
||||
//
|
||||
// StringType.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class StringType {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static System.String FromBoolean (System.Boolean Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromByte (System.Byte Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromChar (System.Char Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromShort (System.Int16 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromInteger (System.Int32 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromLong (System.Int64 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromSingle (System.Single Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromDouble (System.Double Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromSingle (System.Single Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromDouble (System.Double Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromDate (System.DateTime Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromDecimal (System.Decimal Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromDecimal (System.Decimal Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int32 StrCmp (System.String sLeft, System.String sRight, System.Boolean TextCompare) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean StrLike (System.String Source, System.String Pattern, Microsoft.VisualBasic.CompareMethod CompareOption) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean StrLikeBinary (System.String Source, System.String Pattern) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean StrLikeText (System.String Source, System.String Pattern) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void MidStmtStr (ref System.String sDest, ref System.Int32 StartPosition, ref System.Int32 MaxInsertLength, ref System.String sInsert) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
-39
@@ -1,39 +0,0 @@
|
||||
//
|
||||
// TODOAttribute.cs
|
||||
//
|
||||
// Author:
|
||||
// Ravi Pratap ([email protected])
|
||||
//
|
||||
// (C) Ximian, Inc. http://www.ximian.com
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices {
|
||||
|
||||
/// <summary>
|
||||
/// The TODO attribute is used to flag all incomplete bits in our class libraries
|
||||
/// </summary>
|
||||
///
|
||||
/// <remarks>
|
||||
/// Use this to decorate any element which you think is not complete
|
||||
/// </remarks>
|
||||
[AttributeUsage (AttributeTargets.All, AllowMultiple=true)]
|
||||
public class MonoTODOAttribute : Attribute {
|
||||
|
||||
private string comment;
|
||||
|
||||
public MonoTODOAttribute ()
|
||||
{}
|
||||
|
||||
public MonoTODOAttribute (string comment)
|
||||
{
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
public string Comment
|
||||
{
|
||||
get { return comment; }
|
||||
}
|
||||
}
|
||||
}
|
||||
-31
@@ -1,31 +0,0 @@
|
||||
//
|
||||
// Utils.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class Utils {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static void ThrowException (System.Int32 hr) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Object SetCultureInfo (System.Globalization.CultureInfo Culture) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Array CopyArray (System.Array arySrc, System.Array aryDest) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String MethodToString (System.Reflection.MethodBase Method) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
//
|
||||
// MsgBoxResult.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
public enum MsgBoxResult : int {
|
||||
OK = 1,
|
||||
Cancel = 2,
|
||||
Abort = 3,
|
||||
Retry = 4,
|
||||
Ignore = 5,
|
||||
Yes = 6,
|
||||
No = 7
|
||||
};
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
//
|
||||
// MsgBoxStyle.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
[System.FlagsAttribute]
|
||||
public enum MsgBoxStyle : int {
|
||||
ApplicationModal = 0,
|
||||
DefaultButton1 = 0,
|
||||
OKOnly = 0,
|
||||
OKCancel = 1,
|
||||
AbortRetryIgnore = 2,
|
||||
YesNoCancel = 3,
|
||||
YesNo = 4,
|
||||
RetryCancel = 5,
|
||||
Critical = 16,
|
||||
Question = 32,
|
||||
Exclamation = 48,
|
||||
Information = 64,
|
||||
DefaultButton2 = 256,
|
||||
DefaultButton3 = 512,
|
||||
SystemModal = 4096,
|
||||
MsgBoxHelp = 16384,
|
||||
MsgBoxSetForeground = 65536,
|
||||
MsgBoxRight = 524288,
|
||||
MsgBoxRtlReading = 1048576
|
||||
};
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
//
|
||||
// OpenAccess.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
public enum OpenAccess : int {
|
||||
Read = 1,
|
||||
Write = 2,
|
||||
ReadWrite = 3,
|
||||
Default = -1
|
||||
};
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
//
|
||||
// OpenMode.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
public enum OpenMode : int {
|
||||
Input = 1,
|
||||
Output = 2,
|
||||
Random = 4,
|
||||
Append = 8,
|
||||
Binary = 32
|
||||
};
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
//
|
||||
// OpenShare.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
public enum OpenShare : int {
|
||||
LockReadWrite = 0,
|
||||
LockWrite = 1,
|
||||
LockRead = 2,
|
||||
Shared = 3,
|
||||
Default = -1
|
||||
};
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// SpcInfo.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
namespace Microsoft.VisualBasic {
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[MonoTODO]
|
||||
public struct SpcInfo {
|
||||
// Declarations
|
||||
public System.Int16 Count;
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
// Events
|
||||
};
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
Loaded 100 of 2310 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user