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

Jensen Somers jensen.somers at gmail.com
Tue Oct 31 09:49:48 EST 2006


Added it, recompiled and everything worked.
I tested it with a small Console.WriteLine statement and got the same
output as it does on Windows using the .NET framework.
I've attached the diff file with the ChangeLog and System.dll.sources
entry and the class file.


Rafael Teixeira wrote:
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: decompressionmethods.diff
Type: text/x-patch
Size: 2600 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061031/a5bba551/attachment.bin 

More information about the Mono-devel-list mailing list