Commit Graph
21 Commits
Author SHA1 Message Date
Miguel de Icaza 48292550e8 More NET_2_0 define removal 2011-03-16 21:46:02 -04:00
Gert Driesen 3b2ca87f4f * Container.cs: Replaced for loop with for loop.
[Fixes bug #522474]
* ContainerTest.cs: Added test for bug #522474.

svn path=/trunk/mcs/; revision=138328
2009-07-21 19:12:18 +00:00
Gert Driesen 41cb9e9a05 * Container.cs: Use generic list on 2.0 profile, and avoid using var
on 1.0 profile. Use for loop instead of while in Dispose to avoid
accessing count on each iteration.

svn path=/trunk/mcs/; revision=138176
2009-07-18 12:14:42 +00:00
Gert Driesen c58d431a74 * Container.cs: Avoid NRE in Remove and RemoveWithoutUnsiting.
* ContainerTest.cs: Added tests for Remove and RemoveWithoutUnsiting.

svn path=/trunk/mcs/; revision=138175
2009-07-18 09:56:51 +00:00
Gert Driesen 506ae3239b * ContainerTest.cs: Added tests for Add, Dispose, ValidateName and
GetService.
* Container.cs: Changed Dispose(bool) behaviour to match .NET, based
on patch by Tom Hindle ([email protected]). Also use ValidateName
in Add overloads on 1.0 profile by making it available as private
method. Use case-insensitive comparison of component name.

svn path=/trunk/mcs/; revision=138174
2009-07-18 08:20:49 +00:00
Ivan Zlatev 5336a0e898 2008-03-06 Ivan N. Zlatev <[email protected]>
* Container.cs: On disposal unsite the component first before 
	disposing in order to prevent it from asking us to remove it 
	through the Site property.
	[Fixes bugs #367653 and #367583]


svn path=/trunk/mcs/; revision=97611
2008-03-06 19:20:09 +00:00
Atsushi Eno 6d007bebd8 2007-10-29 Atsushi Enomoto <[email protected]>
* AttributeCollection.cs : implemented FromExisting().
	* Container.cs : implemented ValidateName() support.
	* ContainerFilterService.cs : FilterComponents() does nothing.
	* InstanceCreationEditor.cs : implemented get_Text().

	* ContainerTest.cs : added test for ValidateName().


svn path=/trunk/mcs/; revision=88388
2007-10-29 15:30:55 +00:00
Adar Wesley fa26c82574 2007-05-15 Adar Wesley <[email protected]>
* AttributeCollection.cs: added missing method FromExisting.

        * Container.cs: added missing method ValidateName

        * DefaultValueAttribute.cs: added missing method SetValue.

        * EventHandlerList.cs: added missing method AddHandlers.

        * MemberDescriptor.cs: added missing method GetInvocationTarget.

        * PropertyDescriptor.cs: added missing method GetValueChangedHandler.

        * TypeDescriptor.cs: added missing methods CreateInstance, GetFullComponentName,
        GetClassName, GetReflectionType, CreateAssociation, GetAssociation,
        RemoveAssociation, RemoveAssociations.

        * MenuCommand.cs: added missing method overload Invoke

        * ContextStack.cs: added missing method Append.

        * Trace.cs: added missing method Refresh.


svn path=/trunk/mcs/; revision=77397
2007-05-15 11:57:31 +00:00
Gonzalo Paniagua Javier 405ec62f26 2006-09-11 Gonzalo Paniagua Javier <[email protected]>
* Test/System.ComponentModel/ContainerTest.cs:
	* System.ComponentModel/Container.cs: 'unsite' the component when
	removing it. Fixes bug #79255. Patch by Ivan N. Zlatev.


svn path=/trunk/mcs/; revision=65261
2006-09-11 22:57:06 +00:00
Gonzalo Paniagua Javier 06856bd680 2006-01-31 Gonzalo Paniagua Javier <[email protected]>
* Container.cs: patch by Brian Crowell that fixes GetService().


svn path=/trunk/mcs/; revision=56428
2006-02-01 23:20:48 +00:00
Jackson Harper 8f27aa58e9 * Container.cs: Release all when we are supposed to release all.
svn path=/trunk/mcs/; revision=32345
2004-08-14 19:06:51 +00:00
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Jerome Laban db8ee2b426 2003-08-31 Jerome Laban <[email protected]>
* Container.cs: A site without name cannot be duplicate.

svn path=/trunk/mcs/; revision=17763
2003-08-31 13:53:23 +00:00
Andreas N 5bc39e4713 2003-07-13 Andreas Nahr <[email protected]>
* Component.cs: Implementation added
	* Container.cs: Implementation added
	* MarshalByValueComponent.cs: Implementation added
	* ReferenceConverter.cs: Small addition for future implementation

svn path=/trunk/mcs/; revision=16176
2003-07-13 22:06:17 +00:00
Gonzalo Paniagua Javier 33d2a980d3 implementation and fixes by Andreas Nahr.
svn path=/trunk/mcs/; revision=15582
2003-06-23 16:31:41 +00:00
Gonzalo Paniagua Javier 3e02dca4b6 2002-08-28 Gonzalo Paniagua Javier <[email protected]>
* System.ComponentModel/Component.cs:
	* System.ComponentModel/ComponentCollection.cs:
	* System.ComponentModel/Container.cs:
	* System.ComponentModel/MarshalByValueComponent.cs:
	* System.Diagnostics/Process.cs:
	* System.Diagnostics/TextWriterTraceListener.cs:
	* System.IO/FileSystemWatcher.cs:
	IDisposable fixes.

svn path=/trunk/mcs/; revision=7117
2002-08-28 02:30:24 +00:00
Piers Haken cc63806f23 minor CLS conformance tweaks (visibility, virtual, abstract, sealed, etc...)
svn path=/trunk/mcs/; revision=3568
2002-04-03 06:28:53 +00:00
Piers Haken 84187bf9a6 fixed member accessibility to match MS (corcompare).
svn path=/trunk/mcs/; revision=3531
2002-04-01 06:07:43 +00:00
Ravi Pratap M 80081d895e 2002-01-05 Ravi Pratap <[email protected]>
* CategoryAttribute.cs, Component.cs, ComponentCollection.cs: MonoTODO.

	* Container.cs, MemberDescriptor.cs, PropertyDescriptor.cs : Ditto.

svn path=/trunk/mcs/; revision=1861
2002-01-05 13:38:01 +00:00
Miguel de Icaza ac653e22ed *** empty log message ***
svn path=/trunk/mcs/; revision=389
2001-08-02 22:11:17 +00:00
Miguel de Icaza b691f286c7 2001-08-02 Miguel de Icaza <[email protected]>
* Container.cs, Component.cs, IContainer.cs, IComponent.cs,
	ComponentCollection.cs, ISite.cs: New classes

2001-08-02  Miguel de Icaza  <[email protected]>

	* IServiceProvider.cs, EventHandler.cs: New files.

svn path=/trunk/mcs/; revision=387
2001-08-02 21:57:41 +00:00