Author: mhabersack
Date: 2007-09-06 11:09:07 -0400 (Thu, 06 Sep 2007)
New Revision: 85423

Modified:
   trunk/mcs/class/corlib/System.Globalization/ChangeLog
   trunk/mcs/class/corlib/System.Globalization/DateTimeFormatInfo.cs
Log:
2007-09-06  Marek Habersack  <[EMAIL PROTECTED]>

            * DateTimeFormatInfo.cs: minimal implementation of
            AbbreviatedMonthGenitiveNames, MonthGenitiveNames and
            NativeCalendar name properties.


Modified: trunk/mcs/class/corlib/System.Globalization/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/ChangeLog       2007-09-06 
14:51:09 UTC (rev 85422)
+++ trunk/mcs/class/corlib/System.Globalization/ChangeLog       2007-09-06 
15:09:07 UTC (rev 85423)
@@ -1,3 +1,9 @@
+2007-09-06  Marek Habersack  <[EMAIL PROTECTED]>
+
+       * DateTimeFormatInfo.cs: minimal implementation of
+       AbbreviatedMonthGenitiveNames, MonthGenitiveNames and
+       NativeCalendar name properties.
+
 2007-08-24  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * CalendricalCalculations.cs: Fix a warning.

Modified: trunk/mcs/class/corlib/System.Globalization/DateTimeFormatInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/DateTimeFormatInfo.cs   
2007-09-06 14:51:09 UTC (rev 85422)
+++ trunk/mcs/class/corlib/System.Globalization/DateTimeFormatInfo.cs   
2007-09-06 15:09:07 UTC (rev 85423)
@@ -176,6 +176,8 @@
                        abbreviatedMonthNames = 
INVARIANT_ABBREVIATED_MONTH_NAMES;
                        monthNames = INVARIANT_MONTH_NAMES;
 #if NET_2_0
+                       m_genitiveAbbreviatedMonthNames = 
INVARIANT_ABBREVIATED_MONTH_NAMES;
+                       genitiveMonthNames = INVARIANT_MONTH_NAMES;
                        shortDayNames = INVARIANT_SHORT_DAY_NAMES;
 #endif
                }
@@ -776,24 +778,24 @@
                }
 
 #if NET_2_0
-               [MonoTODO ("NotImplemented")]
+               [MonoTODO ("Returns only the English month abbreviated names")]
                [ComVisible (false)]
                public string [] AbbreviatedMonthGenitiveNames {
-                       get { throw new NotImplementedException (); }
-                       set { throw new NotImplementedException (); }
+                       get { return m_genitiveAbbreviatedMonthNames; }
+                       set { m_genitiveAbbreviatedMonthNames = value; }
                }
 
-               [MonoTODO ("NotImplemented")]
+               [MonoTODO ("Returns only the English moth names")]
                [ComVisible (false)]
                public string [] MonthGenitiveNames {
-                       get { throw new NotImplementedException (); }
-                       set { throw new NotImplementedException (); }
+                       get { return genitiveMonthNames; }
+                       set { genitiveMonthNames = value; }
                }
 
-               [MonoTODO ("NotImplemented")]
+               [MonoTODO ("Returns an empty string as if the calendar name 
wasn't available")]
                [ComVisible (false)]
                public string NativeCalendarName {
-                       get { throw new NotImplementedException (); }
+                       get { return String.Empty; }
                }
 
                [ComVisible (false)]

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to