[Mono-dev] Adding a new class to System.Net

Rafael Teixeira monoman at gmail.com
Tue Oct 31 09:35:14 EST 2006


Hi Jensen,

You need to add the source file name to the lists of sources to
compile the desired library, a file named like
'libraryname.dll.sources'. In this specific case the file you need to
change is:

mcs/class/System/System.dll.sources.

I've seen that you are surrounded your source with the needed #ifdef.

For us to accept your patch you also need to send a changelog entry
for it, and it would be better to send it as a diff file ('svn diff'
on mcs/class/System/ should do the trick, and contain the changes to
Changelog, System.dll.sources and your new DecompressionMethods.cs).

Unit tests for enumerations, AFAIK, aren't mandatory, but probably
some is missing for the method that would use the enumeration
(directly as a parameter, or contained in some field of a class/struct
that is passed to it or contains the method).

I tried to give a short overview, but the mandatory references are:

http://www.mono-project.com/Contributing
http://www.mono-project.com/Mono_Contribution_HOWTO


Thanks,

:)



On 10/31/06, Jensen Somers <jensen.somers at gmail.com> wrote:
> Hi,
>
> I have a small question.
> I noticed on the Class Status Page that the public enum
> DecompressionMethods hasn't been implemented yet. It's not a big enum so
> I gave it a shot.
> The next step is to test it. Unfortunately recompiling mono (make clean,
> autogen, make && make install) did not include my .cs file in the
> System.Net namespace and thus giving me some errors when I try to access
> my enum.
> How can I include my enum into my mono test build, to see if it actually
> works ?
>
> Jensen
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>
>


-- 
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw



More information about the Mono-devel-list mailing list