Commit Graph
125 Commits
Author SHA1 Message Date
Zoltan Varga 184818e5cd 2008-01-29 Zoltan Varga <[email protected]>
* Assembly.cs: Make GetTypes () virtual so it can be overriden by AssemblyBuilder.

svn path=/trunk/mcs/; revision=94300
2008-01-29 19:37:21 +00:00
Zoltan Varga 90be51fd5b 2008-01-29 Zoltan Varga <[email protected]>
* Assembly.cs: Make GetModulesInternal () virtual so it can be overriden by
	AssemblyBuilder.

svn path=/trunk/mcs/; revision=94284
2008-01-29 18:43:46 +00:00
Zoltan Varga cf37916ae0 2008-01-17 Zoltan Varga <[email protected]>
* Assembly.cs AssemblyFlagsAttribute.cs ICustomAttributeProvider.cs
	MemberInfo.cs FieldInfo.cs DefaultMemberAttribute.cs 
	CustomAttributeNamedArgument.cs TargetException.cs MethodInfo.cs
	IReflect.cs CustomAttributeTypedArgument.cs Module.cs: Change some parameter
	names to match MS.

svn path=/trunk/mcs/; revision=93188
2008-01-17 19:22:02 +00:00
Sebastien Pouliot 6135a17f72 2008-01-06 Sebastien Pouliot <[email protected]>
* Assembly.cs: Fix typo in setter found with Gendarme (was used in a
	single place, AppDomain, and set to true so it never caused a problem)

2008-01-04  Gert Driesen  <[email protected]>


svn path=/trunk/mcs/; revision=92343
2008-01-06 15:39:22 +00:00
Zoltan Varga 69f6e13614 2007-12-26 Zoltan Varga <[email protected]>
* Assembly.cs (GetSatelliteAssembly): Search in the assembly directory as well.
	Fixes ##345627.

svn path=/trunk/mcs/; revision=91907
2007-12-26 21:16:51 +00:00
Zoltan Varga 9b0a11a54e 2007-11-16 Zoltan Varga <[email protected]>
* Assembly.cs (GetFiles): Include the assembly itself as the first entry.

svn path=/trunk/mcs/; revision=89725
2007-11-15 23:36:24 +00:00
Atsushi Eno f5982eb128 2007-10-24 Atsushi Enomoto <[email protected]>
* Assembly.cs : include ReflectionOnlyLoad() as part of 2.0
	  bootstrap build.


svn path=/trunk/mcs/; revision=88064
2007-10-24 12:44:33 +00:00
Zoltan Varga 8fd8307c59 2007-09-23 Zoltan Varga <[email protected]>
* Assembly.cs (GetManifestModule): New virtual method overridden by 
	AssemblyBuilder.

svn path=/trunk/mcs/; revision=86224
2007-09-22 23:37:08 +00:00
Gert Driesen 059ba0a94d * Assembly.cs: In GetManifestResourceStream, throw ANE with type as
paramname when both name and type are null. Use String.Length to check
for zero-length string.
* AssemblyTest.cs: Added tests for GetManifestResourceStream argument
checks.

svn path=/trunk/mcs/; revision=85935
2007-09-17 19:56:56 +00:00
Miguel de Icaza e4000f01f4 Rationalize MonoTODO
svn path=/trunk/mcs/; revision=68713
2006-11-30 00:30:30 +00:00
Miguel de Icaza 8a1af5fd38 2006-11-16 Miguel de Icaza <[email protected]>
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
	== AllDirectories

And a lot of MonoTODOs updated as well


svn path=/trunk/mcs/; revision=67998
2006-11-16 14:14:01 +00:00
Gert Driesen ef6e652215 * AssemblyTest.cs: Modified test to pass on 2.0 profile and .NET 2.0.
* Assembly.cs: On 2.0 profile, throw FileNotFoundException for
linked resources in GetManifestResourceStream when assembly is
loaded from byte array.

svn path=/trunk/mcs/; revision=63460
2006-08-07 23:36:55 +00:00
Gert Driesen 93b761b427 * Assembly.cs: When assembly is loaded from byte array, return null for
linked resources in GetManifestResourceStream. Fixes bug #78468.
* AssemblyTest.cs: Enabled test for bug #78468.

svn path=/trunk/mcs/; revision=62381
2006-07-09 14:03:17 +00:00
Miguel de Icaza 227eb0054f 2006-03-01 Miguel de Icaza <[email protected]>
* Assembly.cs: Cache the AssemblyName, patch from Tambet.  This
       reduces the memory usage during remoting.



svn path=/trunk/mcs/; revision=57472
2006-03-01 19:08:55 +00:00
Sebastien Pouliot a05195cd37 2005-12-23 Sebastien Pouliot <[email protected]>
* Assembly.cs: Fixed #75950. The icall has been changed to accept a 
	boolean so it can return a non-escaped code base.


svn path=/trunk/mcs/; revision=54799
2005-12-23 20:28:13 +00:00
Zoltan Varga c3476cd513 2005-11-15 Zoltan Varga <[email protected]>
* Assembly.cs AssemblyNameFlags.cs FieldInfo.cs PropertyInfo.cs 
	CustomAttributeData.cs PortableExecutableKinds.cs 
	ObfuscateAssemblyAttribute.cs Module.cs ObfuscationAttribute.cs: Net 2.0 RTM
	updates.

svn path=/trunk/mcs/; revision=53055
2005-11-15 14:06:42 +00:00
Martin Baulig 131fa47bda 2005-09-20 Martin Baulig <[email protected]>
* Assembly.cs: Removed some unused debugger icalls.


svn path=/trunk/mcs/; revision=50322
2005-09-20 18:30:01 +00:00
Martin Baulig c8991ddc4a 2005-09-05 Martin Baulig <[email protected]>
* Assembly.cs (MonoDebugger_GetMethodToken): Don't take an
	`Assembly' argument.


svn path=/trunk/mcs/; revision=49444
2005-09-05 07:46:25 +00:00
Gonzalo Paniagua Javier 99d0833d5c 2005-08-08 Gonzalo Paniagua Javier <[email protected]>
* Assembly.cs: made GetManifestResourceInternal internal. Fixes the
	build.


svn path=/trunk/mcs/; revision=48104
2005-08-08 07:18:55 +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 f8ab4cc12b 2005-06-21 Sebastien Pouliot <[email protected]>
* Assembly.cs: Create a copy of the evidences and add an instance of 
	PermissionRequestEvidence to it before resolution. This way the PRE
	won't be present when asking for evidences later. Removed debugging 
	code.


svn path=/trunk/mcs/; revision=46302
2005-06-21 13:04:27 +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
Sebastien Pouliot 4c74e8776b 2005-06-14 Sebastien Pouliot <[email protected]>
* Assembly.cs: UnprotectedGetName is now virtual to allow for more
	initialization in AssemblyBuilder. The [Granted|Refused]PermissionSet
	now use the ResolvingPolicyLevel to support the policy 
	FullTrustAssemblies during resolution.
	* AssemblyName.cs: Return null instead of "new byte [0]" if no public
	key is available.


svn path=/trunk/mcs/; revision=45969
2005-06-14 14:17:53 +00:00
Zoltan Varga b36fd49ce5 2005-06-09 Zoltan Varga <[email protected]>
* CustomAttributeData.cs EventInfo.cs Assembly.cs: Updates for net 2.0 beta 2.

svn path=/trunk/mcs/; revision=45692
2005-06-09 12:04:38 +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 5c4dd1aefc 2005-06-06 Zoltan Varga <[email protected]>
* Assembly.cs ExceptionHandlingClause.cs: Fix build.

svn path=/trunk/mcs/; revision=45525
2005-06-06 18:59:39 +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
Gonzalo Paniagua Javier b6324d8a2a 2005-06-04 Gonzalo Paniagua Javier <[email protected]>
* System/Environment.cs:
	* System/AppDomain.cs:
	* System.Reflection/Assembly.cs: if the assembly is loaded from a byte
	array, Location returns "". Fixes bug #74958.


svn path=/trunk/mcs/; revision=45416
2005-06-04 20:19:00 +00:00
Zoltan Varga 1f259da182 2005-05-25 Zoltan Varga <[email protected]>
* Assembly.cs: Avoid security checks if Assembly.Location is "".

svn path=/trunk/mcs/; revision=44991
2005-05-25 11:20:21 +00:00
Lluis Sanchez 307a1b178f 2004-05-03 Lluis Sanchez <[email protected]>
* Assembly.cs: Don't remove version and culture information from
	the name, since it will be used by load_with_partial_name.


svn path=/trunk/mcs/; revision=43934
2005-05-03 15:06:58 +00:00
Sebastien Pouliot ab27aeeedb * Assembly.cs: Added some CAS security to avoid returning restricted
information to partially truster callers (e.g. code base). Added new
	methods to get the Evidence and AssemblyName so that the security
	runtime can bootstrap itself (without calling itself).

2005-04-14  Sebastien Pouliot  <[email protected]>


svn path=/trunk/mcs/; revision=43543
2005-04-25 13:05:56 +00:00
Sebastien Pouliot ffc1ce85b9 2005-04-14 Sebastien Pouliot <[email protected]>
* Assembly.cs: Added missing null check in GetObjectData.


svn path=/trunk/mcs/; revision=43001
2005-04-14 13:27:10 +00:00
Sebastien Pouliot 26f74116fd 2005-03-16 Sebastien Pouliot <[email protected]>
* Assembly.cs: Implemented EscapedCodeBase using the copy of 
	System.Uri (System.dll) located in Mono.Security.Uri. Fix bug #73663.


svn path=/trunk/mcs/; revision=41895
2005-03-16 13:11:54 +00:00
Carlos Alberto Cortez 2251dc33e4 2005-02-24 Carlos Alberto Cortez <[email protected]>
* Assembly.cs: LoadFrom: Change signature to support reflection only
	methods; ReflectionOnlyLoad, ReflectionOnlyLoadFrom 2.0 methods
	implemented; InvalidOperationException's re-thrown by CreateInstance.
	Also ReflectionOnly 2.0 property added.

	* MonoMethod.cs: InvalidOperationException's are re-thrown when calling 
	Invoke method on reflection only assemblies.
	

svn path=/trunk/mcs/; revision=41142
2005-02-24 08:43:28 +00:00
Chris Toshok 66cdd5e3c1 2005-02-12 Chris Toshok <[email protected]>
* Assembly.cs: Correct the type of MonoDebugger_MakeArrayType.


svn path=/trunk/mcs/; revision=40557
2005-02-12 20:39:42 +00:00
Zoltan Varga a641ecadc2 2005-02-11 Zoltan Varga <[email protected]>
* Assembly.cs: Fix warning.

svn path=/trunk/mcs/; revision=40487
2005-02-11 16:37:13 +00:00
Martin Baulig ac27c64152 2005-02-10 Martin Baulig <[email protected]>
* Module.cs (MonoDebugger_ResolveType): New internal method.

	* Assembly.cs (MonoDebugger_MakeArrayType): New internal method.
	(MonoDebugger_GetTypeToken): New internal method.


svn path=/trunk/mcs/; revision=40443
2005-02-10 22:06:25 +00:00
Martin Baulig fba01fc2a4 2005-02-10 Martin Baulig <[email protected]>
* Assembly.cs (MonoDebugger_GetMethodIndex): New internal method.


svn path=/trunk/mcs/; revision=40412
2005-02-10 18:17:27 +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
Sebastien Pouliot 8f4a285147 2005-01-21 Sebastien Pouliot <[email protected]>
* Assembly.cs: Fixed add for ModuleResolve.


svn path=/trunk/mcs/; revision=39329
2005-01-21 19:40:41 +00:00
Sebastien Pouliot 35cfe26d59 2004-12-21 Sebastien Pouliot <[email protected]>
* Assembly.cs: Added private LoadAssemblyPermissions to get the 
	declarative security permission sets (minimum, optional and refused)
	for the assembly.


svn path=/trunk/mcs/; revision=38031
2004-12-21 16:24:11 +00:00
Sebastien Pouliot 50ade98767 2004-12-20 Sebastien Pouliot <[email protected]>
* Assembly.cs: Removed old Demand support (moved in System.Security).


svn path=/trunk/mcs/; revision=37975
2004-12-20 15:29:18 +00:00
Zoltan Varga 3ba1f95ca4 2004-12-08 Zoltan Varga <[email protected]>
* Assembly.cs: Move corlib_internal field to AssemblyBuilder.

svn path=/trunk/mcs/; revision=37392
2004-12-08 16:04:38 +00:00
Zoltan Varga dda443dc2a 2004-12-06 Zoltan Varga <[email protected]>
* Assembly.cs: Add corlib_internal field.

svn path=/trunk/mcs/; revision=37197
2004-12-06 16:30:44 +00:00
Zoltan Varga 05092a9898 2004-11-05 Zoltan Varga <[email protected]>
* Assembly.cs: Implement GetFiles (bool).

svn path=/trunk/mcs/; revision=35735
2004-11-05 20:14:48 +00:00
Zoltan Varga e3a84a8528 2004-09-24 Zoltan Varga <[email protected]>
* Assembly.cs: Add stub for ReflectionOnlyLoadFrom.

svn path=/trunk/mcs/; revision=34378
2004-09-24 19:19:56 +00:00
Zoltan Varga 0118ab2ddc 2004-09-24 Zoltan Varga <[email protected]>
* Assembly.cs (LoadWithPartialName): Add [ComVisible] attribute.

svn path=/trunk/mcs/; revision=34377
2004-09-24 19:17:07 +00:00
Zoltan Varga 782160d69f 2004-09-23 Zoltan Varga <[email protected]>
* AssemblyFlagsAttribute.cs: Add 2.0 stuff.

	* Assembly.cs: Add stubs for ReflectionOnlyLoad methods. Add [Obsolete]
	to LoadWithPartialName on 2.0.

	* AssemblyNameFlags.cs: Add new 2.0 members.

	* FieldInfo.cs MonoField.cs PropertyInfo.cs ParameterInfo.cs MonoProperty.cs: Add stubs for Optinal/RequiredCustomModifiers.

svn path=/trunk/mcs/; revision=34304
2004-09-23 19:04:13 +00:00
Martin Baulig 8e71452c84 2004-09-21 Martin Baulig <[email protected]>
* Assembly.cs (MonoDebugger_CheckRuntimeVersion): New internal method.

svn path=/trunk/mcs/; revision=34113
2004-09-20 23:01:58 +00:00
Zoltan Varga 7aa9a55f4a 2004-09-20 Zoltan Varga <[email protected]>
* Assembly.cs: Implement 2.0 reflection properties.

	* Module.cs: Implement 2.0 reflection properties. Add 'token' field.

svn path=/trunk/mcs/; revision=34081
2004-09-20 11:10:00 +00:00