Commit Graph
43 Commits
Author SHA1 Message Date
Atsushi Eno ecf194e93e 2007-11-13 Atsushi Enomoto <[email protected]>
* MethodBase.cs : (Invoke) removed extra interface implementation.


svn path=/trunk/mcs/; revision=89522
2007-11-13 05:33:28 +00:00
Atsushi Eno 5fe6a5b42d 2007-07-04 Atsushi Enomoto <[email protected]>
* Type.cs : 2.0 TypeHandle and ContainsGenericParameters are virtual
	  (required fix for 2.0 reflection API fixes).

	* CustomAttributeNamedArgument.cs CustomAttributeTypedArgument.cs
	  CustomAttributeData.cs : implemented Equals() and GetHashCode().
	* Missing.cs : ISerializable.
	* AssemblyName.cs : ReferenceMatchesDefinition() stub.
	* Module.cs : missing method stubs with generic type/method args.
	* ExceptionHandlingClause.cs : ToString() stub.
	* MethodBase.cs TypeDelegator.cs ModuleResolveEventHandler.cs
	  TypeFilter.cs MemberFilter.cs
	  FieldInfo.cs ParameterInfo.cs MethodInfo.cs DynamicMethod.cs :
	  miscellaneous cosmetic API fixes.


svn path=/trunk/mcs/; revision=81311
2007-07-04 02:19:18 +00:00
Paolo Molaro 758612aea9 Tue May 8 13:04:35 CEST 2007 Paolo Molaro <[email protected]>
* FieldInfo.cs, MethodBase.cs: implemented new GetFieldFromHandle and
	GetMethodFromHandle overloads (bug #78637).


svn path=/trunk/mcs/; revision=76915
2007-05-08 10:58:12 +00:00
Alp Toker f9d61aea34 2007-04-09 Alp Toker <[email protected]>
* MethodBase.cs: IsGenericMethodDefinition() and IsGenericMethod()
	should return false, not throw NotSupportedException. This matches MS
	behaviour and introduces simplifications in subclasses.
	* MonoMethod.cs: MonoCMethod: Remove redundant overrides.


svn path=/trunk/mcs/; revision=75528
2007-04-09 00:45:14 +00:00
Alp Toker cff66adc25 2007-03-01 Alp Toker <[email protected]>
* MethodBase.cs: Add missing ComVisible attr.
	Add GetMethodFromHandle() 2.0 overload stub (NotImplemented).


svn path=/trunk/mcs/; revision=73588
2007-03-01 14:13:50 +00:00
Paolo Molaro 80db88f005 Tue Dec 12 20:35:10 CET 2006 Paolo Molaro <[email protected]>
* MethodBase.cs: added missing ComVisible attr.
	* MethodInfo.cs: added a few missing methods that we implement
	in derived classes.


svn path=/trunk/mcs/; revision=69429
2006-12-12 19:36:13 +00:00
Gert Driesen 7c12d12f16 * MethodInfoTest.cs: GetMethodBody no longer throws ArgumentException for
methods that have no IL body. Part of fix for bug #78522.
* MethodBase.bs: GetMethodBody should not throw ArgumentException for a method
with no IL body. Fixes bug #78522.

svn path=/trunk/mcs/; revision=61216
2006-05-28 19:56:35 +00:00
Martin Baulig dea11e73b6 2006-02-15 Martin Baulig <[email protected]>
* MethodBase.cs (MethodBase.GetGenericMethodDefinition): Removed.
	(MethodBase.Mono_IsInflatedMethod): Removed.
	(MethodBase.HasGenericParameters): Removed.

	* MethodInfo.cs (MethodInfo.GetGenericMethodDefinition): Moved
	here from MethodBase.

	* MonoMethod.cs
	(MonoMethod.IsGenericMethodDefinition): This is now an icall.
	(MonoMethod.IsGenericMethod): Likewise.


svn path=/trunk/mcs/; revision=56897
2006-02-15 19:51:04 +00:00
Zoltan Varga 57c0d7f27c 2006-02-03 Zoltan Varga <[email protected]>
* MethodBase.cs MonoMethod.cs: Implement IsGenericMethod property.
	Fixes #77460.

svn path=/trunk/mcs/; revision=56548
2006-02-03 22:28:25 +00:00
Marek Safar e7891c7fea 2005-11-11 Marek Safar <[email protected]>
* Type.cs: IsNested implemented, signature fixes.

svn path=/trunk/mcs/; revision=52904
2005-11-11 12:55:55 +00:00
Martin Baulig 0cc1ca3985 2005-09-09 Martin Baulig <[email protected]>
Reflect latest API changes in the August CTP.

	* MethodBase.cs (MethodBase.MakeGenericMethod): Removed.

	* MethodInfo.cs (MethodInfo.MakeGenericMethod): Added here.


svn path=/trunk/mcs/; revision=49776
2005-09-09 06:13:36 +00:00
Martin Baulig f5908bb299 Reflect latest generics API changes in the August CTP.
svn path=/trunk/mcs/; revision=49476
2005-09-05 15:03:33 +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
Sebastien Pouliot 571bd38886 2005-06-15 Sebastien Pouliot <[email protected]>
* Assembly.cs, AssemblyName.cs, ConstructorInfo.cs, EventInfo.cs,
	FieldInfo.cs, MemberInfo.cs, MethodBase.cs, MethodInfo.cs, Module.cs,
	ParameterInfo.cs, PropertyInfo.cs: Added some missing interfaces and
	attributes that were added in 1.1 SP1 or 2.0 beta2.


svn path=/trunk/mcs/; revision=46031
2005-06-15 10:45:00 +00:00
Zoltan Varga fae5147e4c 2005-06-09 Zoltan Varga <[email protected]>
* *.cs: Updates for net 2.0 beta 2.

svn path=/trunk/mcs/; revision=45685
2005-06-09 10:38:09 +00:00
Zoltan Varga 601f4125e5 2005-06-06 Zoltan Varga <[email protected]>
* *.cs: Add net 2.0 ComVisibleAttribute.

svn path=/trunk/mcs/; revision=45510
2005-06-06 18:03:29 +00:00
Marek Safar 49dcbb2f20 2005-02-10 Marek Safar <[email protected]>
* Assembly.cs,
	* ConstructorInfo.cs,
	* EventInfo.cs,
	* FieldInfo.cs,
	* MemberInfo.cs,
	* MethodBase.cs,
	* MethodInfo.cs,
	* PropertyInfo.cs: ClassInterfaceType is None.

svn path=/trunk/mcs/; revision=40373
2005-02-10 08:19:26 +00:00
Zoltan Varga f598eece9d 2005-01-18 Zoltan Varga <[email protected]>
* MethodBase.cs MonoMethod.cs: Hopefully fix the build.

svn path=/trunk/mcs/; revision=39114
2005-01-18 19:51:10 +00:00
Zoltan Varga 90a4f0719d 2005-01-18 Zoltan Varga <[email protected]>
* MethodBase.cs MonoMethod.cs: Implement 2.0 GetMethodBody ().

svn path=/trunk/mcs/; revision=39110
2005-01-18 19:20:03 +00:00
Zoltan Varga 6d3eb65e2b 2004-08-30 Zoltan Varga <[email protected]>
* MethodBase.cs (GetMethodFromHandle): Avoid passing a valuetype to
	icalls.

svn path=/trunk/mcs/; revision=33042
2004-08-30 15:14:47 +00:00
Zoltan Varga 84ba14832e 2004-08-29 Zoltan Varga <[email protected]>
* MethodBase.cs (GetMethodFromHandle): Implement.

svn path=/trunk/mcs/; revision=32986
2004-08-29 09:09:29 +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
Gert Driesen 6f4501e510 * Assembly.cs: added missing ComVisible attribute on
ImageRuntimeVersion property
* ConstructorInfo.cs: added missing attributes on Invoke
* EventInfo.cs: added missing attributes
* FieldInfo.cs: added missing attributes
* MethodBase.cs: added missing attributes
* PropertyInfo.cs: added missing attributes

svn path=/trunk/mcs/; revision=28642
2004-06-01 17:48:31 +00:00
Atsushi Eno 5fad7c3594 2004-04-23 Atsushi Enomoto <[email protected]>
* MethodBase.cs, MonoMethod.cs, TypeDelegator.cs :
	  The fix should be easier ;)

svn path=/trunk/mcs/; revision=25882
2004-04-23 04:35:37 +00:00
Atsushi Eno 26b01be2d4 2004-04-23 Atsushi Enomoto <[email protected]>
* MethodBase.cs, MonoMethod.cs, TypeDelegator.cs :
	  NET_2_0 related build fix.

svn path=/trunk/mcs/; revision=25880
2004-04-23 04:18:45 +00:00
Martin Baulig 84a08e67be 2004-04-22 Martin Baulig <[email protected]>
Use `#if NET_2_0 || BOOTSTRAP_2_0' for the generic reflection stuff.

svn path=/trunk/mcs/; revision=25878
2004-04-23 02:40:05 +00:00
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00
Martin Baulig e4b9d98583 2004-04-07 Martin Baulig <[email protected]>
* MethodBase.cs
	(MethodBase.GetGenericParameters): Renamed to GetGenericArguments().

	* MonoGenericInst.cs (MonoGenericInst.DeclaringType): Removed.
	(MonoGenericInst.GetNestedTypes): Just call
	`generic_type.GetNestedTypes (bf)' here.

	* MonoMethod.cs (MonoMethod.ToString): If we're a generic method,
	include the type arguments.

svn path=/trunk/mcs/; revision=25131
2004-04-07 03:57:02 +00:00
Martin Baulig 95c7c99b76 2004-03-29 Martin Baulig <[email protected]>
* MethodBase.cs (MethodBase.Mono_IsInflatedMethod): New public
	virtual property.
	(MethodBase.HasGenericParameters): Use the "official" behavior
	here, ie. return false if we're not a generic method.

svn path=/trunk/mcs/; revision=24740
2004-03-30 00:27:57 +00:00
Martin Baulig 0f0cba4028 2004-03-29 Martin Baulig <[email protected]>
* MethodBase.cs: Moved the generics stuff here, made it virtual
	where neccessary and use the correct API.

svn path=/trunk/mcs/; revision=24736
2004-03-30 00:12:32 +00:00
Martin Baulig 19b9e32cfa 2004-03-10 Martin Baulig <[email protected]>
* MethodBase.cs (MethodBase): Implemented
	GetGenericMethodDefinition() and HasGenericParameters.

svn path=/trunk/mcs/; revision=23899
2004-03-10 22:10:20 +00:00
Ben Maurer a536805431 2003-12-29 Ben Maurer <[email protected]>
* MethodBase.cs: Internal method to get param count (this
	way we can get the info for the ilgen without creating
	an array, if we override the method).

svn path=/trunk/mcs/; revision=21537
2003-12-29 16:58:36 +00:00
Zoltan Varga a31f5a1704 2003-11-21 Zoltan Varga <[email protected]>
* MethodBase.cs (Invoke): Make this virtual under NET 1.2.

svn path=/trunk/mcs/; revision=20308
2003-11-21 16:33:34 +00:00
Zoltan Varga 936de0894a 2003-11-14 Zoltan Varga <[email protected]>
* AssemblyNameFlags.cs MethodAttributes.cs: Add new enumerated values
	from NET 1.1.

	* *.cs: Add missing attributes.

svn path=/trunk/mcs/; revision=19997
2003-11-14 16:20:02 +00:00
Paolo Molaro e86e1e35a4 Wed Jul 24 13:08:56 CEST 2002 Paolo Molaro <[email protected]>
* MethodBase.cs: implemented GetCurrentMethod.
	* Assembly.cs: implemented GetExecutingAssembly and
	GetCallingassembly.

svn path=/trunk/mcs/; revision=6124
2002-07-24 11:11:11 +00:00
Martin Baulig 9170ad3e11 2002-05-22 Martin Baulig <[email protected]>
* MethodBase.cs (get_next_table_index): Added `object obj' argument.

svn path=/trunk/mcs/; revision=4857
2002-05-22 16:12:39 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Dietmar Maurer d4b18d1e82 2002-03-14 Dietmar Maurer <[email protected]>
* Delegate.cs (Equals): also compare method_ptr
	(GetHashCode): returm method_ptr as hash

	* MonoMethod.cs (Invoke): call InternalInvoke

	* MethodBase.cs (Invoke): call virtual invoke function

svn path=/trunk/mcs/; revision=3102
2002-03-14 09:45:12 +00:00
Paolo Molaro 6236225a86 Thu Dec 13 20:10:57 CET 2001 Paolo Molaro <[email protected]>
* Array.cs: implement CopyTo ().
	* Char.cs: implement ToString ().
	* Exception.cs: bugfix.
	* Int32.cs: bare-bones Parse ().
	* MonoType.cs: query the needed info with an internalcall.
	* String.cs: speedups, bugfixes, reduced copies.
	* Type.cs: added missing fields. Implemented many of the Is*
	properties. Implemented GetMethod(), GetConstructor(), GetMethods(),
	GetFields(), FindMembers(), ToString().

Thu Dec 13 20:17:08 CET 2001 Paolo Molaro <[email protected]>

	* ArrayList.cs: implemented AddRange(), CopyTo().


Thu Dec 13 20:18:05 CET 2001 Paolo Molaro <[email protected]>

	* FieldInfo.cs: implemented some Is* propeties.
	* MethodBase.cs: fixed attribute accessors.
	* MonoField.cs: runtime object to represent a field.
	* MonoMethod.cs: runtime object to represent a method.
	* AssemblyBuilder.cs: GetToken() methods to get tokens for
	strings, fields, methods...
	* ILGenerator.cs: handle tokens for methods.

Thu Dec 13 20:22:18 CET 2001 Paolo Molaro <[email protected]>

	* DllImportAttribute.cs: added.
	* MethodImplOptions.cs: removed: this is already in CompilerServices.

svn path=/trunk/mcs/; revision=1566
2001-12-13 15:57:22 +00:00
Paolo Molaro 5fb257ad8c Mon Nov 19 13:58:01 CET 2001 Paolo Molaro <[email protected]>
* AssemblyBuilder.cs: add method to register a string in the "#US"
	stream.
	* EnumBuilder.cs, SignatureHelper.cs: added stubs.
	* ILGenerator.cs: more stuff implemented.
	* LocalBuilder.cs: keep track of local var index.


Mon Nov 19 13:56:55 CET 2001 Paolo Molaro <[email protected]>

	* MethodBase.cs: add internal get_next_table_index() for use in
	Reflection.Emit.

svn path=/trunk/mcs/; revision=1384
2001-11-19 09:09:26 +00:00
Paolo Molaro 49c9e13de5 Fri Nov 2 18:23:15 CET 2001 Paolo Molaro <[email protected]>
* String.cs: fix a couple of bugs.
	* AppDomain.cs: use new AppBuilder constructor.
	* Buffer.cs, GC.cs, NonSerializedAttribute.cs,
	NotImplementedException.cs, ObjectDisposedException.cs,
	UnauthorizedAccessException.cs: add implementation.
	* OverflowException.cs: fix class name.


Fri Nov 2 18:29:36 CET 2001 Paolo Molaro <[email protected]>

	* AmbiguousMatchException.cs,
	* Assembly.cs, Module.cs: updates.
	* FieldInfo.cs: better compliance to the spec.
	* MethodBase.cs: move call_conv out of the way.
	* AssemblyBuilder.cs:  don't use internalcalls, more stuff supported.
	* FieldBuilder.cs: implemented.
	* ILGenerator.cs: implemented some opcode handling.
	* Label.cs: add constructor.
	* LocalBuilder.cs: implemented.
	* MethodBuilder.cs: don't use internalcalls, more implemented stuff.
	* ModuleBuilder.cs: don't use internalcalls, more meat here, too.
	* ParameterBuilder.cs: implemented.
	* PropertyBuilder.cs: implemented.
	* TypeBuilder.cs: don't use internalcalls, more stuff working.


Fri Nov 2 18:27:58 CET 2001 Paolo Molaro <[email protected]>

	* DirectoryNotFoundException.cs: implemented.

svn path=/trunk/mcs/; revision=1260
2001-11-05 06:18:33 +00:00
Paolo Molaro 32fb0da568 Added copyright notices.
svn path=/trunk/mcs/; revision=1120
2001-10-08 12:02:19 +00:00
Paolo Molaro c9ee427524 Fri Sep 14 16:12:08 CEST 2001 Paolo Molaro <[email protected]>
* MethodBase.cs, MethodInfo.cs: added.

svn path=/trunk/mcs/; revision=818
2001-09-14 10:14:48 +00:00