Commit Graph
24 Commits
Author SHA1 Message Date
Miguel de Icaza f4b37857a1 2009-10-16 Miguel de Icaza <[email protected]>
* Jumbo patch to drop support for pre-NET_2_0 code:

	Remove ONLY_1_1 code
	Remove NET_1_0 only code
	Remove NET_2_0 defines assuming the value is true.

	Improve one MonoTODO;   Implement one MonoTODO/Niex.

	Ran a textual diff on the resulting assembly to validate that the
	restul is the same on NET_2_0


svn path=/trunk/mcs/; revision=144298
2009-10-17 00:43:59 +00:00
Robert Jordan c81c002513 In System:
2008-05-07  Robert Jordan  <[email protected]>

	* RuntimeFieldHandle.cs, RuntimeTypeHandle.cs, RuntimeMethodHandle.cs:
	Don't try to serialize uninitialized handles. Fixes #386641.

In .:
2008-05-07  Robert Jordan  <[email protected]>

	* corlib_test.dll.sources: Add System/Runtime*HandleTest.cs

In Test/System:
2008-05-07  Robert Jordan  <[email protected]>

	* Runtime*Handle.cs: Add serialization tests.


svn path=/trunk/mcs/; revision=102727
2008-05-07 14:00:30 +00:00
Zoltan Varga fef17ea2fa 2006-01-02 Zoltan Varga <[email protected]>
* RuntimeTypeHandle.cs RuntimeMethodHandle.cs RuntimeFieldHandle.cs:
	Add == and != operators.

svn path=/trunk/mcs/; revision=54958
2006-01-02 16:26:35 +00:00
Gert Driesen 25a877e9fd * AssemblyInfo.cs: Fixed AssemblyDescription to match MS.NET.
* Array.cs: Changed protected ctor to private. Fixes API compatibility
with MS.NET.
* RuntimeFieldHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* RuntimeMethodHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* RuntimeTypeHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* Type.cs: Added GetType method and implemented _Type interface.
Fixes API compatibility with MS.NET.
* corlib.dll.sources: Added System.Runtime.InteropServices/
TypeLibImportClassAttribute.cs.
* AssemblyBuilder.cs: Implement _AssemblyBuilder, CA fixes to correspond 
with MS.NET
* ConstructorBuilder.cs: Implement _ConstructorBuilder, CA fixes to
correspond with MS.NET
* CustomAttributeBuilder.cs: Implement _CustomAttributeBuilder, CA
fixes to correspond with MS.NET
* EnumBuilder.cs: Implement _EnumBuilder, CA fixes to correspond with MS.NET
* EventBuilder.cs: Implement _EventBuilder, CA fixes to correspond with MS.NET
* FieldBuilder.cs: Implement _FieldBuilder, CA fixes to correspond with MS.NET
* LocalBuilder.cs: Implement _LocalBuilder, CA fixes to correspond with MS.NET
* MethodBuilder.cs: Implement _MethodBuilder, CA fixes to correspond 
with MS.NET
* MethodRental.cs: CA fixes to correspond with MS.NET, implemented 
_MethodRental.
* ModuleBuilder.cs: Implement _ModuleBuilder, CA fixes to correspond 
with MS.NET
* ILGenerator.cs: Implement _ILGenerator, CA fixes to correspond with MS.NET
* ParameterBuilder.cs Implement _ParameterBuilder, CA fixes to correspond 
with MS.NET
* PropertyBuilder.cs: Implement _PropertyBuilder, CA fixes to correspond 
with MS.NET
* SignatureHelper.cs: Implement _SignatureHelper, CA fixes to correspond 
with MS.NET
* TypeBuilder.cs: Implement _TypeBuilder, CA fixes to correspond with MS.NET
* DecimalConstantAttribute.cs: Only mark ctor not CLSCompliant on 2.0
profile to match MS.NET.
* Assembly.cs: Added GetType() method in 1.1 to match MS.NET.
* ConstructorInfo.cs: Added GetType() method in 1.1 to match MS.NET, 
implemented _ConstructorInfo.
* EventInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_EventInfo.
* FieldInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_FieldInfo.
* MemberInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_MemberInfo.
* MethodBase.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_MethodBase.
* MethodInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_MethodInfo.
* PropertyInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_PropertyInfo.
* TypeAttributes.cs: CustomFormatMask and CustomFormatClass should only be 
exposed in 2.0 profile.

svn path=/trunk/mcs/; revision=48073
2005-08-07 08:48:11 +00:00
Zoltan Varga 7f4ccdb257 2005-06-09 Zoltan Varga <[email protected]>
* ModuleHandle RuntimeMethodHandle.cs RuntimeTypeHandle.cs RuntimeFieldHandle.cs RuntimeArgumentHandle.cs: Add missing 2.0 attributes.

svn path=/trunk/mcs/; revision=45684
2005-06-09 10:35:16 +00:00
Zoltan Varga c10d806f53 2005-06-06 Zoltan Varga <[email protected]>
* GC.cs UnhandledExceptionEventArgs.cs IntPtr.cs RuntimeFieldHandle.cs 
	  String.cs Object.cs Math.cs RuntimeMethodHandle.cs ModuleHandle.cs 
	  RuntimeTypeHandle.cs AppDomain.cs: Add some missing 2.0 methods/attributes.

svn path=/trunk/mcs/; revision=45487
2005-06-06 14:12:38 +00:00
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Sebastien Pouliot 761c636eba 2005-03-24 Sebastien Pouliot <[email protected]>
* Activator.cs: Now use the supplied evidences when loading 
	assemblies. Added LinkDemand for RemotingConfiguration on both
	GetObject methods.
	* Console.cs: Added Assert for UnmanagedCode on OpenStandard[Error|
	Input|Output] as they use a handle on a FileStream (which is
	restricted otherwise). Added Demand for UnmanagedCode for the
	Set[Error|In|Out] methods.
	* MarshalByRefObject.cs: Added LinkDemand for Infrastructure on	
	CreateObjRef, GetLifetimeService and InitializeLifetimeService.
	* RuntimeMethodHandle.cs: Added Demand for UnmanagedCode on 
	GetFunctionPointer method.
	* TypedReference.cs: Added LinkDemand for ReflectionPermission's
	MemberAccess on MakeTypedReference.


svn path=/trunk/mcs/; revision=42207
2005-03-24 13:33:17 +00:00
Zoltan Varga 320c781d23 2004-10-04 Zoltan Varga <[email protected]>
* Runtime*Handle.cs ModuleHandle.cs: Add Equals + GetHashCode.

	* ModuleHandle.cs: Add missing methods.

	* RuntimeTypeHandle.cs: Add GetModuleHandle () method.

svn path=/trunk/mcs/; revision=34637
2004-10-03 20:52:58 +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
Andreas N bb05b19f7c 2004-03-09 Andreas Nahr <[email protected]>
* RuntimeTypeHandle.cs
	* RuntimeMethodHandle.cs
	* RuntimeFieldHandle.cs: Implemented serialization (partially untested)

svn path=/trunk/mcs/; revision=23847
2004-03-09 21:07:27 +00:00
Andreas N c0f8d0005d 2004-03-09 Andreas Nahr <[email protected]>
* EventArgs.cs
	* Exception.cs
	* ExecutionEngineException.cs
	* FieldAccessException.cs
	* FormatException.cs
	* GC.cs
	* Guid.cs
	* IndexOutOfRangeException.cs
	* IntPtr.cs
	* InvalidCastException.cs
	* InvalidOperationException.cs
	* InvalidProgramException.cs
	* IServiceProvider.cs
	* LoaderOptimization.cs
	* LoaderOptimizationAttribute.cs
	* MarshalByRefObject.cs
	* Math.cs
	* MemberAccessException.cs
	* MethodAccessException.cs
	* MissingFieldException.cs
	* MissingMemberException.cs
	* MissingMethodException.cs
	* MultiCastDelegate.cs
	* MulticastNotSupportedException.cs
	* NonSerializedAttribute.cs
	* NotFiniteNumberException.cs
	* NotImplementedException.cs
	* NotSupportedException.cs
	* NullReferenceException.cs
	* ObjectDisposedException.cs
	* ObsoleteAttribute.cs
	* OperatingSystem.cs
	* OutOfMemoryException.cs
	* OverflowExceptionException.cs
	* PlatformID.cs
	* PlatformNotSupportedException.cs
	* Random.cs
	* RankException.cs
	* ResolveEventArgs.cs
	* ResolveEventHandler.cs
	* RuntimeFieldHandle.cs
	* RuntimeMethodHandle.cs
	* RuntimeTypeHandle.cs: Mono styled, fixed exceptions/ locales
	  removed excess usings

svn path=/trunk/mcs/; revision=23844
2004-03-09 20:13:43 +00:00
Miguel de Icaza c680cc32d0 2003-11-12 Miguel de Icaza <[email protected]>
* Directory.cs: Adjust for missing PlatformID.Unix.

2003-11-12  Miguel de Icaza  <[email protected]>

	* PlatformID.cs: Remove Unix platform, we cant expose constants
	that are not in the framework.

	* OperatingSystem.cs: Adjust for the breakage.

	* RuntimeMethodHandle.cs: Fix signature.

	* Double.cs: Fix signature of TryParse.

	* String.cs (Concat (object, object, object, object)): Add missing method.

	* OperatingSystem.cs: Removed Equals, GetHashCode, they were not
	in the .NET Framework.

	* Enum.cs: Hide constructor.

	Fix ToUint16 to be explicitly implemented.

	* Console.cs: Add couple of extra missing methods (Write and
	WriteLine overloaded)

svn path=/trunk/mcs/; revision=19857
2003-11-12 04:52:47 +00:00
Duncan Mak a2b66b251f * DateTimeFormatInfo.cs: theInvariantDateTimeFormatInfo should not
be public.

* StreamReader.cs (Initialize): This method is not exposed in the
API, mark as internal.

* SignatureHelper.cs: This class does not have the
SerializableAttribute.

* WaitHandle.cs (CheckDisposed): This method is not in the public
API, mark it as 'internal'.

* Environment.cs (SpecialFolder): Added 'Desktop' and 'MyComputer'
as values for NET_1_1.
(GetFolderPath): Return the empty string ("") for values of
SpecialFolder that have no corresponding equivalents in
Linux. Return "$HOME/Desktop" for SpecialFolder.DesktopDirectory
and "$HOME" for SpecialFolder.Personal.

* IntPtr.cs (GetObjectData): Mark it as an interface
implementation, instead of a public method.

* Guid.cs (NewGuid): Remove MonoTODOAttribute.

* TypeLoadException.cs (GetObjectData):
Create stubs for the fields that are being serialized.

* UIntPtr.cs: Removed erroneous CLSCompliantAttributes.

svn path=/trunk/mcs/; revision=16594
2003-07-24 03:28:43 +00:00
Paolo Molaro fe58460445 Thu Dec 19 16:43:19 CET 2002 Paolo Molaro <[email protected]>
* MonoMethod.cs, ParameterInfo.cs: return a custom attribute
	provider for the return type of a method.

svn path=/trunk/mcs/; revision=9769
2002-12-19 15:46:00 +00:00
Paolo Molaro 5011ad5bf8 Dum de dum, pass the value...
svn path=/trunk/mcs/; revision=7303
2002-09-07 09:13:42 +00:00
Paolo Molaro 8721448885 Sat Sep 7 10:16:52 CEST 2002 Paolo Molaro <[email protected]>
* RuntimeMethodHandle.cs: implemented GetFunctionPointer().

svn path=/trunk/mcs/; revision=7302
2002-09-07 08:18:55 +00:00
Gonzalo Paniagua Javier 2920d505fb 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
* System/Double.cs: implemented TryParse.

	* System/Math.cs: PowImpl is now private.

	* System/MissingFieldException.cs: implemented Message.

	* System/RuntimeMethodHandle.cs: stubbed GetFunctionPointer.

	* System/_AppDomain.cs: Uncommented ToString.

	* System.IO/FileLoadException.cs: implemented ToString.

	* System.IO/StreamWriter.cs: added Null field and implemented
	Write (char) and Write (char []).

svn path=/trunk/mcs/; revision=6955
2002-08-23 16:56:08 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Nick Drochak 6b0ded0e7b 2002-03-06 Nick Drochak <[email protected]>
* Attribute.cs
	* DecimalFormatter.cs
	* Delegate.cs
	* Double.cs
	* GC.cs
	* Int16.cs
	* Int32.cs
	* MonoType.cs
	* RuntimeMethodHandle.cs
	* RuntimeTypeHandle.cs
	* String.cs
	* Type.cs:
		Add [MonoTODO]'s to places where we currently throw a
		NotImplementedException.

svn path=/trunk/mcs/; revision=2906
2002-03-05 12:08:17 +00:00
Nick Drochak b547682659 2001-01-04 Nick Drochak <[email protected]>
* Commented out the [TODO] attributes for now.  We don't have the
	class written.  Also changed it to [MonoTODO]

svn path=/trunk/mcs/; revision=1806
2002-01-04 09:47:24 +00:00
Ravi Pratap M cf1559d02f 2002-01-04 Ravi Pratap <[email protected]>
* TODOAttribute.cs : Add. We use this attribute to tag all bits
	in our class libraries that are incomplete.

	* Array.cs : Apply attribute wherever we find a FIXME which says we need
	something to be implemented there.

	* Int32.cs : Ditto.

	* MulticastDelegate.cs : Ditto.

	* RuntimeFieldHandler.cs, RuntimeMethodHandle.cs, RuntimeTypeHandle.cs : Ditto.

	* String.cs : Ditto.

	* Type.cs : Ditto.

svn path=/trunk/mcs/; revision=1804
2002-01-04 07:51:16 +00:00
Miguel de Icaza f7b109a94f 2001-11-21 Miguel de Icaza <[email protected]>
* ApplicationException.cs: internationalize by adding calls to
	Locale.GetText ().  And throw NotImplementedExceptions on calls
	that we have to implement.

	* Version.cs: Ditto.

	* ValueType.cs: ditto.

	* UnauthorizedAccessException.cs: ditto.

	* UInt32.cs: ditto.

	* UInt64.cs: ditto.

	* UInt16.cs: ditto.

	* TypeLoadException.cs: ditto

	* TypeInitializationException.cs: ditto.

	* Type.cs: ditto.

	* TimeSpan.cs: ditto.

	* SystemException.cs: ditto.

	* String.cs: ditto.

	* StackOverflowException.cs: ditto.x

	* Single.cs: ditto.

	* SByte.cs: ditto.

	* RuntimeTypeHandle.cs: ditto.

	* RuntimeMethodHandle.cs: ditto.

	* RuntimeFieldHandle.cs: ditto.

	* Random.cs: ditto.

	* OutOfMemoryException.cs: ditto.

	* OperatingSystem.cs: ditto.

	* ObjectDisposedException.cs: ditto.

	* NullReferenceException.cs: ditto.

	* NotImplementedException.cs: ditto.

	* NotFiniteNumberException.cs: ditto.o

	* MulticastNotSupportedException.cs: ditto.

	* MissingMethodException.cs: ditto.

	* MemberAccessException.cs: ditto.

	* Math.cs: ditto.

	* InvalidCastException.cs: ditto.

	* IntegerFormatter.cs: ditto.

	* Int32.cs: ditto.

	* Int16.cs: ditto.

	* IndexOutOfRangeException.cs: ditto.

	* Environment.cs: ditto

	* Enum.cs: ditto.

	* DuplicateWaitObjectException.cs: ditto.

	* DivideByZeroException.cs: ditto.

	* Delegate.cs: ditto

	* DecimalFormatter.cs: ditto.

	* Decimal.cs: ditto.

	* DateTime.cs: ditto.

	* Convert.cs: ditto.

	* Char.cs: ditto.

	* Byte.cs: ditto.

	* Boolean.cs: ditto.

	* ArrayTypeMismatchException.cs: ditto.

	* ArithmeticException.cs: ditto.

	* ArgumentOutOfRangeException.cs: ditto.

	* ArgumentNullException.cs: ditto.

	* Enum.cs: Make it derive from ValueType, add CompareTo method.

	* Attribute.cs: Reformat.

svn path=/trunk/mcs/; revision=1406
2001-11-21 18:12:11 +00:00
Paolo Molaro 0e1c47f7a5 Some fixes and some implementation bits. More classes.
svn path=/trunk/mcs/; revision=1028
2001-09-28 13:54:46 +00:00