Author: atsushi
Date: 2007-07-09 06:10:35 -0400 (Mon, 09 Jul 2007)
New Revision: 81625

Modified:
   trunk/mcs/class/corlib/System.Globalization/ChangeLog
   trunk/mcs/class/corlib/System.Globalization/CompareInfo.cs
   trunk/mcs/class/corlib/System.Globalization/CultureInfo.cs
   trunk/mcs/class/corlib/System.Globalization/DaylightTime.cs
   trunk/mcs/class/corlib/System.Globalization/EastAsianLunisolarCalendar.cs
   trunk/mcs/class/corlib/System.Globalization/GregorianCalendar.cs
   trunk/mcs/class/corlib/System.Globalization/HebrewCalendar.cs
   trunk/mcs/class/corlib/System.Globalization/HijriCalendar.cs
   trunk/mcs/class/corlib/System.Globalization/JapaneseCalendar.cs
   trunk/mcs/class/corlib/System.Globalization/JulianCalendar.cs
   trunk/mcs/class/corlib/System.Globalization/KoreanCalendar.cs
   trunk/mcs/class/corlib/System.Globalization/NumberFormatInfo.cs
   trunk/mcs/class/corlib/System.Globalization/PersianCalendar.cs
   trunk/mcs/class/corlib/System.Globalization/RegionInfo.cs
   trunk/mcs/class/corlib/System.Globalization/TaiwanCalendar.cs
   trunk/mcs/class/corlib/System.Globalization/TextElementEnumerator.cs
   trunk/mcs/class/corlib/System.Globalization/TextInfo.cs
   trunk/mcs/class/corlib/System.Globalization/ThaiBuddhistCalendar.cs
Log:
2007-07-09  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * CompareInfo.cs : Name.
        * PersianCalendar.cs : missing members.
        * NumberFormatInfo.cs HijriCalendar.cs CultureInfo.cs TextInfo.cs
          HebrewCalendar.cs ThaiBuddhistCalendar.cs GregorianCalendar.cs
          KoreanCalendar.cs JulianCalendar.cs TaiwanCalendar.cs
          JapaneseCalendar.cs DaylightTime.cs EastAsianLunisolarCalendar.cs
          RegionInfo.cs TextElementEnumerator.cs : ComVisible cleanup.



Modified: trunk/mcs/class/corlib/System.Globalization/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/ChangeLog       2007-07-09 
09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/ChangeLog       2007-07-09 
10:10:35 UTC (rev 81625)
@@ -1,5 +1,15 @@
 2007-07-09  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
+       * CompareInfo.cs : Name.
+       * PersianCalendar.cs : missing members.
+       * NumberFormatInfo.cs HijriCalendar.cs CultureInfo.cs TextInfo.cs
+         HebrewCalendar.cs ThaiBuddhistCalendar.cs GregorianCalendar.cs
+         KoreanCalendar.cs JulianCalendar.cs TaiwanCalendar.cs
+         JapaneseCalendar.cs DaylightTime.cs EastAsianLunisolarCalendar.cs
+         RegionInfo.cs TextElementEnumerator.cs : ComVisible cleanup.
+
+2007-07-09  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
        * TextInfo.cs : ICloneable.
        * GregorianCalendarTypes.cs CompareOptions.cs CultureTypes.cs
          CalendarWeekRule.cs UnicodeCategory.cs : [Serializable].

Modified: trunk/mcs/class/corlib/System.Globalization/CompareInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/CompareInfo.cs  2007-07-09 
09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/CompareInfo.cs  2007-07-09 
10:10:35 UTC (rev 81625)
@@ -34,10 +34,14 @@
 using System.Reflection;
 using System.Runtime.Serialization;
 using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
 using Mono.Globalization.Unicode;
 
 namespace System.Globalization
 {
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        [Serializable]
        public class CompareInfo : IDeserializationCallback
        {
@@ -816,11 +820,13 @@
                }
 
 #if NET_2_0
+               [ComVisible (false)]
                public static bool IsSortable (char c)
                {
                        return MSCompatUnicodeTable.IsSortable (c);
                }
 
+               [ComVisible (false)]
                public static bool IsSortable (string s)
                {
                        return MSCompatUnicodeTable.IsSortable (s);
@@ -858,5 +864,12 @@
                                return(culture);
                        }
                }
+
+#if NET_2_0
+               [ComVisible (false)]
+               public virtual string Name {
+                       get { return icu_name; }
+               }
+#endif
        }
 }

Modified: trunk/mcs/class/corlib/System.Globalization/CultureInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/CultureInfo.cs  2007-07-09 
09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/CultureInfo.cs  2007-07-09 
10:10:35 UTC (rev 81625)
@@ -33,9 +33,13 @@
 using System.Collections;
 using System.Threading;
 using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
 
 namespace System.Globalization
 {
+#if NET_2_0
+       [System.Runtime.InteropServices.ComVisible (true)]
+#endif
        [Serializable]
        public class CultureInfo : ICloneable, IFormatProvider
        {

Modified: trunk/mcs/class/corlib/System.Globalization/DaylightTime.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/DaylightTime.cs 2007-07-09 
09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/DaylightTime.cs 2007-07-09 
10:10:35 UTC (rev 81625)
@@ -29,6 +29,9 @@
 
 namespace System.Globalization
 {
+#if NET_2_0
+       [System.Runtime.InteropServices.ComVisible (true)]
+#endif
        [Serializable]
        public class DaylightTime
        {

Modified: 
trunk/mcs/class/corlib/System.Globalization/EastAsianLunisolarCalendar.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/EastAsianLunisolarCalendar.cs   
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/EastAsianLunisolarCalendar.cs   
2007-07-09 10:10:35 UTC (rev 81625)
@@ -37,6 +37,7 @@
 using System;
 
 [Serializable]
+[System.Runtime.InteropServices.ComVisible (true)]
 public abstract class EastAsianLunisolarCalendar : Calendar {
        // FIXME: This is ok and it does not have to be something like 
        // CCEastAsianLunisolarEraHandler since it does not depend on

Modified: trunk/mcs/class/corlib/System.Globalization/GregorianCalendar.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/GregorianCalendar.cs    
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/GregorianCalendar.cs    
2007-07-09 10:10:35 UTC (rev 81625)
@@ -29,6 +29,7 @@
 namespace System.Globalization {
 
 using System;
+using System.Runtime.InteropServices;
 
 /// <summary>
 /// This is the Gregorian calendar.
@@ -42,6 +43,9 @@
 /// </para>
 /// </remarks>
 [Serializable]
+#if NET_2_0
+[ComVisible (true)]
+#endif
 [MonoTODO ("Serialization format not compatible with .NET")]
 public class GregorianCalendar : Calendar {
 
@@ -305,6 +309,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetLeapMonth (int year, int era)
        {
                return 0;
@@ -344,6 +349,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetWeekOfYear (DateTime date, CalendarWeekRule 
rule, DayOfWeek firstDayOfWeek)
        {
                return base.GetWeekOfYear (date, rule, firstDayOfWeek);
@@ -498,6 +504,7 @@
        }
        
 #if NET_2_0
+       [ComVisible (false)]
        public override CalendarAlgorithmType AlgorithmType {
                get {
                        return CalendarAlgorithmType.SolarCalendar;
@@ -507,12 +514,14 @@
        static DateTime Min = new DateTime (1, 1, 1, 0, 0, 0);
        static DateTime Max = new DateTime (9999, 12, 31, 11, 59, 59);
                
+       [ComVisible (false)]
        public override DateTime MinSupportedDateTime {
                get {
                        return Min;
                }
        }
 
+       [ComVisible (false)]
        public override DateTime MaxSupportedDateTime {
                get {
                        return Max;

Modified: trunk/mcs/class/corlib/System.Globalization/HebrewCalendar.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/HebrewCalendar.cs       
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/HebrewCalendar.cs       
2007-07-09 10:10:35 UTC (rev 81625)
@@ -30,6 +30,7 @@
 
 using System;
 using System.IO;
+using System.Runtime.InteropServices;
 
 /// <summary>
 /// This is the Hebrew calendar.
@@ -43,6 +44,9 @@
 /// </para>
 /// </remarks>
 [Serializable]
+#if NET_2_0
+[ComVisible (true)]
+#endif
 [MonoTODO ("Serialization format not compatible with.NET")]
 public class HebrewCalendar : Calendar {
        /// <summary>

Modified: trunk/mcs/class/corlib/System.Globalization/HijriCalendar.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/HijriCalendar.cs        
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/HijriCalendar.cs        
2007-07-09 10:10:35 UTC (rev 81625)
@@ -30,6 +30,7 @@
 
 using System;
 using System.IO;
+using System.Runtime.InteropServices;
 
 
 /// <summary>
@@ -53,6 +54,9 @@
 /// </para>
 /// </remarks>
 [Serializable]
+#if NET_2_0
+[ComVisible (true)]
+#endif
 [MonoTODO ("Serialization format not compatible with .NET")]
 public class HijriCalendar : Calendar {
        /// <summary>
@@ -755,6 +759,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetLeapMonth (int year, int era)
        {
                return 0;
@@ -938,6 +943,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override CalendarAlgorithmType AlgorithmType  {
                get {
                        return CalendarAlgorithmType.LunarCalendar;
@@ -947,12 +953,14 @@
        static DateTime Min = new DateTime (622, 7, 18, 0, 0, 0);
        static DateTime Max = new DateTime (9999, 12, 31, 11, 59, 59);
                
+       [ComVisible (false)]
        public override DateTime MinSupportedDateTime {
                get {
                        return Min;
                }
        }
 
+       [ComVisible (false)]
        public override DateTime MaxSupportedDateTime {
                get {
                        return Max;

Modified: trunk/mcs/class/corlib/System.Globalization/JapaneseCalendar.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/JapaneseCalendar.cs     
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/JapaneseCalendar.cs     
2007-07-09 10:10:35 UTC (rev 81625)
@@ -29,6 +29,7 @@
 namespace System.Globalization {
 
 using System;
+using System.Runtime.InteropServices;
 
 /// <summary>
 /// This is the Japanese calendar. It differs from the Gregorian calendar
@@ -68,6 +69,9 @@
 /// </para>
 /// </remarks>
 [Serializable]
+#if NET_2_0
+[ComVisible (true)]
+#endif
 [MonoTODO ("Serialization format not compatible with .NET")]
 public class JapaneseCalendar : Calendar {
        /// <summary>
@@ -409,6 +413,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetLeapMonth (int year, int era)
        {
                return 0;
@@ -454,6 +459,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetWeekOfYear (DateTime date, CalendarWeekRule 
rule, DayOfWeek firstDayOfWeek)
        {
                return base.GetWeekOfYear (date, rule, firstDayOfWeek);
@@ -615,6 +621,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override CalendarAlgorithmType AlgorithmType {
                get {
                        return CalendarAlgorithmType.SolarCalendar;
@@ -624,12 +631,14 @@
        static DateTime JapanMin = new DateTime (1868, 9, 8, 0, 0, 0);
        static DateTime JapanMax = new DateTime (9999, 12, 31, 11, 59, 59);
                
+       [ComVisible (false)]
        public override DateTime MinSupportedDateTime {
                get {
                        return JapanMin;
                }
        }
 
+       [ComVisible (false)]
        public override DateTime MaxSupportedDateTime {
                get {
                        return JapanMax;

Modified: trunk/mcs/class/corlib/System.Globalization/JulianCalendar.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/JulianCalendar.cs       
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/JulianCalendar.cs       
2007-07-09 10:10:35 UTC (rev 81625)
@@ -29,6 +29,7 @@
 namespace System.Globalization {
 
 using System;
+using System.Runtime.InteropServices;
 
 /// <summary>
 /// This is the Julian calendar.
@@ -42,6 +43,9 @@
 /// </para>
 /// </remarks>
 [Serializable]
+#if NET_2_0
+[ComVisible (true)]
+#endif
 [MonoTODO ("Serialization format not compatible with .NET")]
 public class JulianCalendar : Calendar {
        /// <summary>
@@ -319,6 +323,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetLeapMonth (int year, int era)
        {
                return 0;
@@ -490,6 +495,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override CalendarAlgorithmType AlgorithmType {
                get {
                        return CalendarAlgorithmType.SolarCalendar;
@@ -499,12 +505,14 @@
        static DateTime JulianMin = new DateTime (1, 1, 1, 0, 0, 0);
        static DateTime JulianMax = new DateTime (9999, 12, 31, 11, 59, 59);
                
+       [ComVisible (false)]
        public override DateTime MinSupportedDateTime {
                get {
                        return JulianMin;
                }
        }
 
+       [ComVisible (false)]
        public override DateTime MaxSupportedDateTime {
                get {
                        return JulianMax;

Modified: trunk/mcs/class/corlib/System.Globalization/KoreanCalendar.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/KoreanCalendar.cs       
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/KoreanCalendar.cs       
2007-07-09 10:10:35 UTC (rev 81625)
@@ -29,6 +29,7 @@
 namespace System.Globalization {
 
 using System;
+using System.Runtime.InteropServices;
 
 /// <summary>
 /// This is the Korean calendar. It differs from the Gegorian calendar only
@@ -40,6 +41,9 @@
 /// </para>
 /// </remarks>
 [Serializable]
+#if NET_2_0
+[ComVisible (true)]
+#endif
 [MonoTODO ("Serialization format not compatible with .NET")]
 public class KoreanCalendar : Calendar {
        /// <summary>
@@ -321,6 +325,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetLeapMonth (int year, int era)
        {
                return 0;
@@ -360,6 +365,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetWeekOfYear (DateTime date, CalendarWeekRule 
rule, DayOfWeek firstDayOfWeek)
        {
                return base.GetWeekOfYear (date, rule, firstDayOfWeek);
@@ -498,6 +504,7 @@
        }
        
 #if NET_2_0
+       [ComVisible (false)]
        public override CalendarAlgorithmType AlgorithmType {
                get {
                        return CalendarAlgorithmType.SolarCalendar;
@@ -507,12 +514,14 @@
        static DateTime KoreanMin = new DateTime (1, 1, 1, 0, 0, 0);
        static DateTime KoreanMax = new DateTime (9999, 12, 31, 11, 59, 59);
                
+       [ComVisible (false)]
        public override DateTime MinSupportedDateTime {
                get {
                        return KoreanMin;
                }
        }
 
+       [ComVisible (false)]
        public override DateTime MaxSupportedDateTime {
                get {
                        return KoreanMax;

Modified: trunk/mcs/class/corlib/System.Globalization/NumberFormatInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/NumberFormatInfo.cs     
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/NumberFormatInfo.cs     
2007-07-09 10:10:35 UTC (rev 81625)
@@ -48,7 +48,7 @@
 namespace System.Globalization {
 
 #if NET_2_0
-       [System.Runtime.InteropServices.ComVisible(false)]
+       [System.Runtime.InteropServices.ComVisible(true)]
 #endif
        [Serializable]
        public sealed class NumberFormatInfo : ICloneable, IFormatProvider {

Modified: trunk/mcs/class/corlib/System.Globalization/PersianCalendar.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/PersianCalendar.cs      
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/PersianCalendar.cs      
2007-07-09 10:10:35 UTC (rev 81625)
@@ -35,6 +35,7 @@
 
 using System;
 using System.IO;
+using System.Runtime.InteropServices;
 
 /// <summary>
 /// This is the Persian calendar of Iran, also known as the Iranian
@@ -702,6 +703,28 @@
                        return baseCentury + year - 100;
        }
 
+#if NET_2_0
+       public override CalendarAlgorithmType AlgorithmType {
+               get {
+                       return CalendarAlgorithmType.SolarCalendar;
+               }
+       }
+
+       static DateTime PersianMin = new DateTime (622, 3, 21, 0, 0, 0);
+       static DateTime PersianMax = new DateTime (9999, 12, 31, 11, 59, 59);
+               
+       public override DateTime MinSupportedDateTime {
+               get {
+                       return PersianMin;
+               }
+       }
+
+       public override DateTime MaxSupportedDateTime {
+               get {
+                       return PersianMax;
+               }
+       }
+#endif
 } // class PersianCalendar
        
 } // namespace System.Globalization

Modified: trunk/mcs/class/corlib/System.Globalization/RegionInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/RegionInfo.cs   2007-07-09 
09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/RegionInfo.cs   2007-07-09 
10:10:35 UTC (rev 81625)
@@ -136,6 +136,7 @@
                }
 
 #if NET_2_0
+               [System.Runtime.InteropServices.ComVisible(false)]
                public virtual int GeoId {
                        get { return regionId; }
                }
@@ -164,6 +165,7 @@
                }
 
                [MonoTODO ("Not implemented")]
+               [System.Runtime.InteropServices.ComVisible(false)]
                public virtual string CurrencyNativeName {
                        get { throw new NotImplementedException (); }
                }

Modified: trunk/mcs/class/corlib/System.Globalization/TaiwanCalendar.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/TaiwanCalendar.cs       
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/TaiwanCalendar.cs       
2007-07-09 10:10:35 UTC (rev 81625)
@@ -29,6 +29,7 @@
 namespace System.Globalization {
 
 using System;
+using System.Runtime.InteropServices;
 
 /// <summary>
 /// This is the Japanese calendar. It differs from the Gregorian calendar
@@ -376,6 +377,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetLeapMonth (int year, int era)
        {
                return 0;
@@ -421,6 +423,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetWeekOfYear (DateTime date, CalendarWeekRule 
rule, DayOfWeek firstDayOfWeek)
        {
                return base.GetWeekOfYear (date, rule, firstDayOfWeek);
@@ -580,6 +583,7 @@
                return year;
        }
 #if NET_2_0
+       [ComVisible (false)]
        public override CalendarAlgorithmType AlgorithmType {
                get {
                        return CalendarAlgorithmType.SolarCalendar;
@@ -589,12 +593,14 @@
        static DateTime TaiwanMin = new DateTime (1912, 1, 1, 0, 0, 0);
        static DateTime TaiwanMax = new DateTime (9999, 12, 31, 11, 59, 59);
                
+       [ComVisible (false)]
        public override DateTime MinSupportedDateTime {
                get {
                        return TaiwanMin;
                }
        }
 
+       [ComVisible (false)]
        public override DateTime MaxSupportedDateTime {
                get {
                        return TaiwanMax;

Modified: trunk/mcs/class/corlib/System.Globalization/TextElementEnumerator.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/TextElementEnumerator.cs        
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/TextElementEnumerator.cs        
2007-07-09 10:10:35 UTC (rev 81625)
@@ -36,6 +36,9 @@
 namespace System.Globalization {
 
        [Serializable]
+#if NET_2_0
+       [System.Runtime.InteropServices.ComVisible (true)]
+#endif
        public class TextElementEnumerator: IEnumerator {
                private int index;
                private int elementindex;

Modified: trunk/mcs/class/corlib/System.Globalization/TextInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/TextInfo.cs     2007-07-09 
09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/TextInfo.cs     2007-07-09 
10:10:35 UTC (rev 81625)
@@ -43,6 +43,9 @@
 namespace System.Globalization {
 
        [Serializable]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        [MonoTODO ("IDeserializationCallback isn't implemented.")]
        public class TextInfo: IDeserializationCallback
 #if NET_2_0
@@ -148,6 +151,7 @@
                                        m_listSeparator = ((char) 
data.list_sep).ToString ();
                                return m_listSeparator;
                        }
+                       [ComVisible (false)]
                        set { m_listSeparator = value; }
 #else
                        get {
@@ -490,6 +494,7 @@
                }
 
 #if NET_2_0
+               [ComVisible (false)]
                static public TextInfo ReadOnly (TextInfo textInfo)
                {
                        if (textInfo == null)
@@ -509,7 +514,8 @@
 
 #if NET_2_0
                /* IClonable */
-               public object Clone ()
+               [ComVisible (false)]
+               public virtual object Clone ()
                {
                        return new TextInfo (this);
                }

Modified: trunk/mcs/class/corlib/System.Globalization/ThaiBuddhistCalendar.cs
===================================================================
--- trunk/mcs/class/corlib/System.Globalization/ThaiBuddhistCalendar.cs 
2007-07-09 09:37:34 UTC (rev 81624)
+++ trunk/mcs/class/corlib/System.Globalization/ThaiBuddhistCalendar.cs 
2007-07-09 10:10:35 UTC (rev 81625)
@@ -29,6 +29,7 @@
 namespace System.Globalization {
 
 using System;
+using System.Runtime.InteropServices;
 
 /// <summary>
 /// This is the ThaiBudhist calendar. It differs from the Gegorian calendar
@@ -40,6 +41,9 @@
 /// </para>
 /// </remarks>
 [Serializable]
+#if NET_2_0
+[ComVisible (true)]
+#endif
 [MonoTODO ("Serialization format not compatible with.NET")]
 public class ThaiBuddhistCalendar : Calendar {
        /// <summary>
@@ -321,6 +325,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetLeapMonth (int year, int era)
        {
                return 0;
@@ -360,6 +365,7 @@
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetWeekOfYear (DateTime date, CalendarWeekRule 
rule, DayOfWeek firstDayOfWeek)
        {
                return base.GetWeekOfYear (date, rule, firstDayOfWeek);
@@ -499,6 +505,7 @@
        }
        
 #if NET_2_0
+       [ComVisible (false)]
        public override CalendarAlgorithmType AlgorithmType {
                get {
                        return CalendarAlgorithmType.SolarCalendar;
@@ -508,12 +515,14 @@
        static DateTime ThaiMin = new DateTime (1, 1, 1, 0, 0, 0);
        static DateTime ThaiMax = new DateTime (9999, 12, 31, 11, 59, 59);
                
+       [ComVisible (false)]
        public override DateTime MinSupportedDateTime {
                get {
                        return ThaiMin;
                }
        }
 
+       [ComVisible (false)]
        public override DateTime MaxSupportedDateTime {
                get {
                        return ThaiMax;

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

Reply via email to