Zoltan Varga dd756a1e07 2005-03-08 Zoltan Varga <[email protected]> 21 gadi atpakaļ
..
Accessibility d1c09fcc67 Add licensing info 21 gadi atpakaļ
ByteFX.Data 9bdaabaab6 In tools/mono-rpm-helpers: 21 gadi atpakaļ
Commons.Xml.Relaxng b4532fa051 2005-03-07 Atsushi Enomoto <[email protected]> 21 gadi atpakaļ
Cscompmgd 9f59e436af * Compiler.cs: mcs writes to stderr now. Also read stdout so we 21 gadi atpakaļ
Custommarshalers bab786ade5 Add licensing info 21 gadi atpakaļ
FirebirdSql.Data.Firebird 2fe7e20ff8 Updated Firebird Provider to the RC2 sources 21 gadi atpakaļ
I18N ad68ed505d 2005/01/03 Nick Drochak <[email protected]> 21 gadi atpakaļ
IBM.Data.DB2 c85d42b11b In .: 21 gadi atpakaļ
ICSharpCode.SharpZipLib c85d42b11b In .: 21 gadi atpakaļ
Managed.Windows.Forms 168adfb17b 2005-03-08 Jordi Mas i Hernandez <[email protected]> 21 gadi atpakaļ
Microsoft.JScript 649d9e140f 2005-02-28 Cesar Lopez Nataren <[email protected]> 21 gadi atpakaļ
Microsoft.VisualBasic 04ebef2514 Assigned value to destination in string manipulation to achieve required functionality 21 gadi atpakaļ
Microsoft.VisualC bab786ade5 Add licensing info 21 gadi atpakaļ
Microsoft.Vsa bab786ade5 Add licensing info 21 gadi atpakaļ
Microsoft.Web.Services c85d42b11b In .: 21 gadi atpakaļ
Mono.C5 ea189663dc 2005-01-19 Martin Baulig <[email protected]> 21 gadi atpakaļ
Mono.Cairo d74ee6abee Remove duplicate licenses 21 gadi atpakaļ
Mono.CompilerServices.SymbolWriter 863afecd0b remove incorrect comment 21 gadi atpakaļ
Mono.Data 904ceaa340 2004-10-22 Daniel Morgan <[email protected]> 21 gadi atpakaļ
Mono.Data.DB2Client bab786ade5 Add licensing info 21 gadi atpakaļ
Mono.Data.MySql bab786ade5 Add licensing info 21 gadi atpakaļ
Mono.Data.PostgreSqlClient bab786ade5 Add licensing info 21 gadi atpakaļ
Mono.Data.SqliteClient 6b557af436 removed unused variables 21 gadi atpakaļ
Mono.Data.SybaseClient d44fc4de1e 2005-01-16 Daniel Morgan <[email protected]> 21 gadi atpakaļ
Mono.Data.Tds f891d1f874 2005-02-04 Sureshkumar T <[email protected]> 21 gadi atpakaļ
Mono.Data.TdsClient bab786ade5 Add licensing info 21 gadi atpakaļ
Mono.Directory.LDAP bab786ade5 Add licensing info 21 gadi atpakaļ
Mono.GetOptions 58af6c1dd4 2005-02-28 Rafael Teixeira <[email protected]> 21 gadi atpakaļ
Mono.Globalization 3f761fefe4 New build system from Peter Williams ([email protected]) 22 gadi atpakaļ
Mono.Http d1c09fcc67 Add licensing info 21 gadi atpakaļ
Mono.PEToolkit bab786ade5 Add licensing info 21 gadi atpakaļ
Mono.Posix ce07be62f2 2005-02-22 Gonzalo Paniagua Javier <[email protected]> 21 gadi atpakaļ
Mono.Security 8e9d504abd 2005-03-07 Sebastien Pouliot <[email protected]> 21 gadi atpakaļ
Mono.Security.Win32 c85d42b11b In .: 21 gadi atpakaļ
Mono.Xml.Ext 0af4e0b039 Here too 21 gadi atpakaļ
Novell.Directory.Ldap a80e493e8a 2004-12-07 Atsushi Enomoto <[email protected]> 21 gadi atpakaļ
Npgsql fd7f0db2fd 2005-02-20 Francisco Figueiredo Jr. <[email protected]> 21 gadi atpakaļ
PEAPI 4145d2bfe2 2004-12-08 Sebastien Pouliot <[email protected]> 21 gadi atpakaļ
System f44d1cb31a 2005-03-06 Nick Drochak <[email protected]> 21 gadi atpakaļ
System.Configuration.Install 97553bb62e cvs ignores, sorry about the spam 21 gadi atpakaļ
System.Data c04cfcb57c In System.Data.ProviderBase: 21 gadi atpakaļ
System.Data.ObjectSpaces bab786ade5 Add licensing info 21 gadi atpakaļ
System.Data.OracleClient 733ebc1d7e 2005-03-06 Daniel Morgan <[email protected]> 21 gadi atpakaļ
System.Data.SqlXml 0eb8a86796 2004-09-08 Atsushi Enomoto <[email protected]> 21 gadi atpakaļ
System.Design af8bba40c9 2004-10-26 Gonzalo Paniagua Javier <[email protected]> 21 gadi atpakaļ
System.DirectoryServices e34325c098 Fixed search scope in DirectorySearcher DoSearch method. 21 gadi atpakaļ
System.Drawing 9fb6d31fbc 2004-02-25 Jordi Mas i Hernadez <[email protected]> 21 gadi atpakaļ
System.Drawing.Design bab786ade5 Add licensing info 21 gadi atpakaļ
System.EnterpriseServices 97553bb62e cvs ignores, sorry about the spam 21 gadi atpakaļ
System.Management bab786ade5 Add licensing info 21 gadi atpakaļ
System.Messaging 97553bb62e cvs ignores, sorry about the spam 21 gadi atpakaļ
System.Runtime.Remoting 4b0cc69ebc 2005-02-16 Lluis Sanchez Gual <[email protected]> 21 gadi atpakaļ
System.Runtime.Serialization.Formatters.Soap 03e249b421 2005-02-10 Lluis Sanchez Gual <[email protected]> 21 gadi atpakaļ
System.Security e6886b1b44 2005-02-27 Nick Drochak <[email protected]> 21 gadi atpakaļ
System.ServiceProcess 20e91be152 2005-01-23 Geoff Norton <[email protected]> 21 gadi atpakaļ
System.Web a7cfd6842d 2005-03-04 Lluis Sanchez Gual <[email protected]> 21 gadi atpakaļ
System.Web.Mobile bab786ade5 Add licensing info 21 gadi atpakaļ
System.Web.Services 3c78e87029 2005-02-07 Lluis Sanchez Gual <[email protected]> 21 gadi atpakaļ
System.XML 61e5228375 2005-03-08 Lluis Sanchez Gual <[email protected]> 21 gadi atpakaļ
corlib dd756a1e07 2005-03-08 Zoltan Varga <[email protected]> 21 gadi atpakaļ
doc 5dc2037ab1 Added files removed during import 21 gadi atpakaļ
lib 4f459917b6 placeholders for new profile directories 21 gadi atpakaļ
notes 25f95f44fc More files 24 gadi atpakaļ
.cvsignore b1ebd3393a (basic_SUBDIRS): New. 21 gadi atpakaļ
ChangeLog 6cb0769510 Add circular dependency on System.Security.dll. 21 gadi atpakaļ
LICENSE 0eed5bae7d Add MIT X11 LICENSE to the class dir 23 gadi atpakaļ
Makefile 6cb0769510 Add circular dependency on System.Security.dll. 21 gadi atpakaļ
README dfedf08d98 2004-04-22 Martin Baulig <[email protected]> 22 gadi atpakaļ
ecma.pub 558f4d0af6 2004-03-23 Sebastien Pouliot <[email protected]> 22 gadi atpakaļ
mono.pub 71ce0f66da Adding it again as a binary. 22 gadi atpakaļ
mono.snk b747124904 Add mono.snk 21 gadi atpakaļ
msfinal.pub 558f4d0af6 2004-03-23 Sebastien Pouliot <[email protected]> 22 gadi atpakaļ

README

The class libraries are grouped together in the assemblies they belong.

Each directory here represents an assembly, and inside each directory we
divide the code based on the namespace they implement.

In addition, each assembly directory contains a Test directory that holds the
NUnit tests for that assembly.

We use a new build system which is described by various README files
in mcs/build

The build process typically builds an assembly, but in some cases it
also builds special versions of the assemblies intended to be used for
testing.

* Missing implementation bits

If you implement a class and you are missing implementation bits,
please use the attribute [MonoTODO]. This attribute can be used
to programatically generate our status web pages:

[MonoTODO]
int MyFunction ()
{
throw new NotImplementedException ();
}

* Supporting .NET 1.2, .NET 1.1 and .NET 1.0 builds

The defines NET_1_1 and NET_2_0 are used to include
features. When NET_2_0 is defined, it also implies that the
NET_1_1 is defined.

To have code which is only available in an old version, use ONLY_1_0,
ONLY_1_1

* Tagging buggy code

If there is a bug in your implementation tag the problem by using
the word "FIXME" in the code, together with a description of the
problem.

Do not use XXX or obscure descriptions, because otherwise people
will not be able to understand what you mean.

* Tagging Problematic specs.

If the documentation and the Microsoft implementation do
differ (you wrote a test case to prove this), I suggest that you edit
the file `mcs/class/doc/API-notes' so we can keep track of these problems
and submit our comments to ECMA or Microsoft and seek clarification.

Sometimes the documentation might be buggy, and sometimes the implementation
might be buggy. Lets try to identify and pinpoint which one
is the correct one.

Sometimes the specification will be lame (consider Version.ToString (fieldCount)
where there is no way of knowing how many fields are available, making the API
not only stupid, but leading to unreliable code).

In those cases, use the keyword "LAMESPEC".


* Coding considerations and style.

In order to keep the code consistent, please use the following
conventions. From here on `good' and `bad' are used to attribute
things that would make the coding style match, or not match. It is not
a judgement call on your coding abilities, but more of a style and
look call. Please try to follow these guidelines to ensure prettiness.

Use 8 space tabs for writing your code (hopefully we can keep
this consistent). If you are modifying someone else's code, try
to keep the coding style similar.

Since we are using 8-space tabs, you might want to consider the Linus
Torvals trick to reduce code nesting. Many times in a loop, you will
find yourself doing a test, and if the test is true, you will nest.
Many times this can be changed. Example:


for (i = 0; i < 10; i++) {
if (something (i)) {
do_more ();
}
}

This take precious space, instead write it like this:

for (i = 0; i < 10; i++) {
if (!something (i))
continue;
do_more ();
}

A few guidelines:

* Use a space before an opening parenthesis when calling
functions, or indexing, like this:

method (a);
b [10];

* Do not put a space after the opening parenthesis and the
closing one, ie:

good: method (a); array [10];

bad: method ( a ); array[ 10 ];

* Inside a code block, put the opening brace on the same line
as the statement:

good:
if (a) {
code ();
code ();
}

bad:
if (a)
{
code ();
code ();
}

* Avoid using unecessary open/close braces, vertical space
is usually limited:

good:
if (a)
code ();

bad:
if (a) {
code ();
}

* When defining a method, use the C style for brace placement,
that means, use a new line for the brace, like this:

good:
void Method ()
{
}

bad:
void Method () {
}

* Properties and indexers are an exception, keep the
brace on the same line as the property declaration.
Rationale: this makes it visually
simple to distinguish them.

good:
int Property {
get {
return value;
}
}

bad:
int Property
{
get {
return value;
}
}

Notice how the accessor "get" also keeps its brace on the same
line.

For very small properties, you can compress things:

ok:
int Property {
get { return value; }
set { x = value; }
}

* Use white space in expressions liberally, except in the presence
of parenthesis:

good:

if (a + 5 > method (blah () + 4))

bad:
if (a+5>method(blah()+4))

* For any new files, please use a descriptive introduction, like
this:

//
// System.Comment.cs: Handles comments in System files.
//
// Author:
// Juan Perez ([email protected])
//
// (C) 2002 Address, Inc (http://www.address.com)
//

* If you are modyfing someone else's code, and your contribution
is significant, please add yourself to the Authors list.

* Switch statements have the case at the same indentation as the
switch:

switch (x) {
case 'a':
...
case 'b':
...
}

* Argument names should use the camel casing for
identifiers, like this:

good:
void Method (string myArgument)

bad:
void Method (string lpstrArgument)
void Method (string my_string)

* Empty methods: They should have the body of code using two
lines, in consistency with the rest:

good:
void EmptyMethod ()
{
}

bad:
void EmptyMethod () {}

void EmptyMethod ()
{}

* Line length: The line length for C# source code is 134 columns.


If your function declaration arguments go beyond
this point, please align your arguments to match the
opening brace, like this:

void Function (int arg, string argb,
int argc)
{
}

When invoking functions, the rule is different, the
arguments are not aligned with the previous
argument, instead they begin at the tabbed position,
like this:

void M ()
{
MethodCall ("Very long string that will force",
"Next argument on the 8-tab pos",
"Just like this one")

}

Here are a couple of examples:

class X : Y {

bool Method (int argument_1, int argument_2)
{
if (argument_1 == argument_2)
throw new Exception (Locale.GetText ("They are equal!");

if (argument_1 < argument_2) {
if (argument_1 * 3 > 4)
return true;
else
return false;
}

//
// This sample helps keep your sanity while using 8-spaces for tabs
//
VeryLongIdentifierWhichTakesManyArguments (
Argument1, Argument2, Argument3,
NestedCallHere (
MoreNested));
}

bool MyProperty {
get {
return x;
}

set {
x = value;
}
}

void AnotherMethod ()
{
if ((a + 5) != 4) {
}

while (blah) {
if (a)
continue;
b++;
}
}
}