[Mono-list] System private libraries

A Rafael D Teixeira rafaelteixeirabr@hotmail.com
Thu, 06 Sep 2001 18:02:11 -0300


>From: Derek Holden <dsh2120@draper.com>
>
>I've started working through the relationships of all the
>Formattable / IFormatProvider / FormatInfo classes that make up
>the ToString and Parse methods in all of the core data types. There is 
>going to a lot of similar code blocks and argument validity
>checking across the board.
>
>Do we have any System.Private type of namespace where some of these
>shared methods could go? Should I just add them as protected methods
>in one of the interface classes, make some separate class for
>handling this and bundle it alongside, or just cut and paste in every
>place?

I think this is a case for 'internal' classes in the any namespace.
The catch is that they must be compiled in the same assembly as the classes 
calling them, but don't have to reside in the same source file as c++ 
'friend' classes.

Example:
internal class FormattingHelper
{
   public static int IntM = 0;
}

Rafael Teixeira
Brazilian Developer


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp