Commit Graph
23 Commits
Author SHA1 Message Date
Martin Midtgaard 3c7dd7421c Implemented DaysInYearBeforeMinSupportedYear for all Calendars that should have it in .Net 4.5 2014-02-08 17:44:20 +01:00
Marek Safar a08a39ffe6 Don't clone internally used era values 2013-03-02 18:56:31 +01:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Marek Safar f293d90615 Fix few warnings 2012-06-26 13:26:56 +01:00
Jb Evain 116b2ee12f use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153664
2010-03-16 12:15:11 +00:00
Miguel de Icaza 0204abe803 Drop more obsolete defines
svn path=/trunk/mcs/; revision=144304
2009-10-17 01:35:27 +00:00
Geoff Norton 88026a47b4 fix MONOTOUCH on trunk
svn path=/trunk/mcs/; revision=144133
2009-10-14 18:49:14 +00:00
Sebastien Pouliot 9c2b650909 2009-09-23 Sebastien Pouliot <[email protected]>
* Calendar.cs: Don't expose AlgorithmType property in NET_2_1
	* CultureInfo.cs: Don't expose CultureTypes in NET_2_1
	* NumberFormatInfo.cs: Don't expose NativeDigits in NET_2_1
	* GregorianCalendar.cs, HebrewCalendar.cs, HijriCalendar.cs,
	JapaneseCalendar.cs, KoreanCalendar.cs, TaiwanCalendar.cs,
	ThaiBuddhistCalendar.cs, UmAlQuraCalendar.cs: Don't expose 
	AlgorithmType property in NET_2_1


svn path=/trunk/mcs/; revision=142480
2009-09-23 12:46:33 +00:00
Miguel de Icaza 31f9ff7de5 2009-07-26 Miguel de Icaza <[email protected]>
* Calendar.cs: Do not add internal abstract methods to the
	Calendar class, it prevents derived classes from existing. 

svn path=/trunk/mcs/; revision=138695
2009-07-26 17:44:33 +00:00
Andreas N ab00882b70 2008-07-03 Andreas Nahr <[email protected]>
* UmAlQuraCalendar.cs:
	* ThaiBuddhistCalendar.cs
	* TaiwanCalendar.cs:
	* PersianCalendar.cs:
	* KoreanCalendar.cs:
	* JulianCalendar.cs:
	* JapaneseCalendar.cs:
	* HijriCalendar.cs:
	* HebrewCalendar.cs:
	* GregorianCalendar.cs:
	* EastAsianLunisolarCalendar.cs:
	* Calendar.cs: Fix parameter names

svn path=/trunk/mcs/; revision=107184
2008-07-03 20:21:00 +00:00
Atsushi Eno a87721a7ce 2007-07-02 Atsushi Enomoto <[email protected]>
* UmAlQuraCalendar.cs
	  EastAsianLunisolarCalendar.cs
	  ChineseLunisolarCalendar.cs
	  TaiwanLunisolarCalendar.cs
	  JapaneseLunisolarCalendar.cs
	  KoreanLunisolarCalendar.cs : new 2.0 calendars.
	* Calendar.cs
	  HijriCalendar.cs HebrewCalendar.cs ThaiBuddhistCalendar.cs
	  GregorianCalendar.cs KoreanCalendar.cs JulianCalendar.cs
	  TaiwanCalendar.cs JapaneseCalendar.cs PersianCalendar.cs :
	  added GetLeapMonth().
	* CalendricalCalculations.cs : added some lunisolar calendar stuff.
	  mostly stubs.

	* EastAsianLunisolarCalendarTest.cs : new test, totally not-working.
	* CalendarTest.cs : added couple of 2.0 tests. Some are not working.

	* corlib.dll.sources : added couple of new 2.0 calendars.
	* corlib_test.dll.sources : added EastAsianLunisolarCalendarTest.cs.


svn path=/trunk/mcs/; revision=81162
2007-07-02 08:33:31 +00:00
Atsushi Eno d7e3c98820 2007-06-01 Atsushi Enomoto <[email protected]>
* Calendar.cs DateTimeFormatInfo.cs : 2.0 API fixes.
	* CalendricalCalculations.cs : fixed AddMonth() and AddYears() to
	  consider that the max days in the target month (for AddYears()
	  leap year month could matter). Fixed bug #81783.

	* CalendarTest.cs : test for bug #81783 and AddYears() for leap year
	  (similar issue).


svn path=/trunk/mcs/; revision=78429
2007-06-01 16:40:20 +00:00
Chris Toshok 3fe56d68fb 2007-01-25 Chris Toshok <[email protected]>
* Calendar.cs, HijriCalendar.cs, ThaiBuddhistCalendar.cs,
	HebrewCalendar.cs, GregorianCalendar.cs, KoreanCalendar.cs,
	JulianCalendar.cs, PersianCalendar.cs:

	more serialization fixes.  the M_TwoDigitYearMax field we use
	appears to be called twoDigitYearMax in MS.NET.  rename it (and
	fix all the Calendar subclasses to use this naming).  Likewise
	with is_readonly (MS calls it m_isReadOnly).

	Also, the m_currentEraValue field I had originally placed in
	GregorianCalendar appears to be in Calendar (as running
	nunit-2.2.8-2.0 shows.)

	In GregorianCalendar, rename the M_CalendarType field to m_type
	and remove the extra field I added.
	
	The previous fix got nunit 2.4-2.0 running.  This change gets
	versions 2.2.8 and 2.4 of nunit running against both 1.1 and 2.0
	profiles.


svn path=/trunk/mcs/; revision=71706
2007-01-25 19:44:15 +00:00
Peter Dennis Bartok eb1c36e677 2006-03-02 Peter Dennis Bartok <[email protected]>
* DateTimeFormatInfo.cs: Switched (where possible) our internal
	  field names to match MS names. Added fields that MS has and we
	  don't. Fixes serialization issues with MS.
	* CultureInfo.cs, Calendar.cs, TextInfo.cs, 
	  GregorianCalenda.cs: Hiding internal attributes from serialization


svn path=/trunk/mcs/; revision=57532
2006-03-03 05:47:10 +00:00
Atsushi Eno d0f67963c3 2005-11-29 Atsushi Enomoto <[email protected]>
* CompareInfo.cs : IsSortable() are static.
	* CharUnicodeInfo.cs : became non-static in RTM.
	* Calendar.cs : added support for Clone() and IsReadOnly.
	* HijriCalendar.cs ThaiBuddhistCalendar.cs HebrewCalendar.cs
	  GregorianCalendar.cs KoreanCalendar.cs JulianCalendar.cs
	  TaiwanCalendar.cs JapaneseCalendar.cs PersianCalendar.cs :
	  check IsReadOnly on every setter.


svn path=/trunk/mcs/; revision=53615
2005-11-29 03:53:05 +00:00
Miguel de Icaza 68d61746c8 Reduce the pending stuff from corlib 2.x
2005-10-31  Miguel de Icaza  <[email protected]>

	* HijriCalendar.cs, HebrewCalendar.cs, JulianCalendar.cs,
	GregorianCalendar.cs, JapaneseCalendar.cs, Calendar.cs,
	TaiwanCalendar.cs, HijriCalendar.cs: Add
	CalendarAlgorithmType, MinSupportedDateTime, MaxSupportedDateTime
	properties. 

	* Added ComVisibleAttribute in a bunch of places, using the fully
	qualified name to speed up cut and paste.
	


svn path=/trunk/mcs/; revision=52426
2005-10-31 22:44:02 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Piers Haken 4c6ef57917 minor fixups:
visibility changes
	remove obsolete (& unimplemented) methods

svn path=/trunk/mcs/; revision=3558
2002-04-02 19:24:40 +00:00
Ulrich Kunitz a5a1c1d334 *Calendar classes
svn path=/trunk/mcs/; revision=3462
2002-03-28 20:00:29 +00:00
Paolo Molaro c441fe5cc6 Wed Nov 14 16:30:27 CET 2001 Paolo Molaro <[email protected]>
* Linux.cs: a '/' is a valid char in a file path.


Wed Nov 14 16:31:19 CET 2001 Paolo Molaro <[email protected]>

	* AppDomain.cs: rename dummy interface _AppDomain to AppDomain_Intf.
	* Array.cs: fix Array.Copy.
	* AssemblyLoadEventArgs.cs: rename field.
	* CLSCompliantAttribute.cs: use correct name for the class.
	* Char.cs: fix IsLetter.
	* Console.cs, DateTime.cs, Decimal.cs, IConvertible.cs, Math.cs,
	SByte.cs, UInt16.cs, UInt32.cs, UInt64.cs, UIntPtr.cs: CLSCompliant updates.
	* Convert.cs: CLSCompliant updates, add ChangeType() methods.
	* Delegate.cs: renamed target field to m_target.
	* Enum.cs: added missing methods.
	* MonoType.cs: add a constructor and some needed properties.
	* Object.cs: implement GetType().
	* String.cs: CLSCompliant updates. Fixes everywhere to remove the
	ending 0 char.
	* Type.cs: add missing methods/properties.


Wed Nov 14 16:45:49 CET 2001 Paolo Molaro <[email protected]>

	* ArrayList.cs: implement ArrayListEnumerator.
	* Hashtable.cs: hardcode the prime number table.


Wed Nov 14 16:47:07 CET 2001 Paolo Molaro <[email protected]>

	* Calendar.cs: CLSCompliant updates.


Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <[email protected]>

	* CheckPermission.cs: disable ModeAccess() code: it's wrong.
	* FileStream.cs: only trow an exception if the read failed in ReadByte().
	* StreamReader.cs: implement Peek and Read.
	* TextWriter.cs: CLSCompliant updates.


Wed Nov 14 16:53:28 CET 2001 Paolo Molaro <[email protected]>

	* Assembly.cs: implement some of the Load() methods.
	* ConstructorInfo.cs: some missing stubs and fields.
	* FieldInfo.cs: IsInitOnly property.
	* ParameterInfo.cs: stubs for missing properties.
	* ParameterModifier.cs: implemented class.


Wed Nov 14 17:01:45 CET 2001 Paolo Molaro <[email protected]>

	* ConstructorBuilder.cs: added missing stubs and some implementation.
	* CustomAttributeBuilder.cs: added.
	* EventBuilder.cs: added.
	* FieldBuilder.cs: updates.
	* MethodBuilder.cs: stuff to implement P/Invoke methods.
	* ModuleBuilder.cs: added GetArrayMethod() stub.
	* ParameterBuilder.cs, PropertyBuilder.cs: updates.
	* TypeBuilder.cs: updates and stubs.


Wed Nov 14 17:02:57 CET 2001 Paolo Molaro <[email protected]>

	* CallingConvention.cs: add missing Winapi.


Wed Nov 14 17:03:30 CET 2001 Paolo Molaro <[email protected]>

	* IFormatterConverter.cs, SerializationInfo.cs: CLSCompliant updates.


Wed Nov 14 17:04:30 CET 2001 Paolo Molaro <[email protected]>

	* MD5CryptoServiceProvider.cs, SHA1CryptoServiceProvider.cs,
	SHA256Managed.cs: CLSCompliant updates.


Wed Nov 14 17:05:22 CET 2001 Paolo Molaro <[email protected]>

	* Encoding.cs: renamed some fields.
	* StringBuilder.cs: CLSCompliant updates.


Wed Nov 14 17:06:18 CET 2001 Paolo Molaro <[email protected]>

	* Overlapped.cs, ThreadPool.cs, Timer.cs: CLSCompliant updates.

svn path=/trunk/mcs/; revision=1351
2001-11-14 15:18:05 +00:00
Miguel de Icaza ceaabec533 Add new files from Wictor Wilen
svn path=/trunk/mcs/; revision=849
2001-09-17 14:29:52 +00:00
Miguel de Icaza e6dccbce05 Added piles of new enumerations from Sergey.
Updates the enumerations to contain [Flags] (Sergey)
Updated enumerations to have the same values as ECMA (Sergey).
Added various new methods to Type.cs
Added all the classes that were not being compiled in the past to the build.
Fix various small typos to get things compiling

Miguel

svn path=/trunk/mcs/; revision=702
2001-09-02 17:50:38 +00:00
nick 50046bca16 all stubbed out
svn path=/trunk/mcs/; revision=37
2001-06-26 21:09:02 +00:00