* InitializationEventAttribute.cs: New.
authorRaja R Harinath <harinath@hurrynot.org>
Mon, 25 Dec 2006 04:29:48 +0000 (04:29 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Mon, 25 Dec 2006 04:29:48 +0000 (04:29 -0000)
svn path=/trunk/mcs/; revision=70035

mcs/class/System/System.ComponentModel/ChangeLog
mcs/class/System/System.ComponentModel/InitializationEventAttribute.cs [new file with mode: 0644]
mcs/class/System/System.dll.sources

index b4647b3cd7d6ec938fe1b90986ffce2d886f334f..76161069f3f9e16a6e15bb8032911e2316933084 100644 (file)
@@ -1,3 +1,7 @@
+2006-12-25  Raja R Harinath  <harinath@gmail.com>
+
+       * InitializationEventAttribute.cs: New.
+
 2006-12-24  Konstantin Triger  <kostat@mainsoft.com>
 
        * Implemented DataObjectMethodAttribute and DataObjectMethodType.
diff --git a/mcs/class/System/System.ComponentModel/InitializationEventAttribute.cs b/mcs/class/System/System.ComponentModel/InitializationEventAttribute.cs
new file mode 100644 (file)
index 0000000..3bc2c09
--- /dev/null
@@ -0,0 +1,51 @@
+//
+// System.ComponentModel.InitializationEventAttribute
+//
+// Authors:
+//   Raja R Harinath
+//
+// (C) 2006 Novell, Inc
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.ComponentModel
+{
+       [AttributeUsage (AttributeTargets.Class)]
+       public sealed class InitializationEventAttribute : Attribute
+       {
+               public InitializationEventAttribute (string eventName)
+               {
+                       this.eventName = eventName;
+               }
+
+               public string EventName {
+                       get { return eventName; }
+               }
+
+               string eventName;
+       }
+}
+
+#endif
index 5898981278cc568dbc8ef082ac5b07e2f7440c18..384c84636459b92d1336dd317ea4670e8f3c5b98 100644 (file)
@@ -300,6 +300,7 @@ System.ComponentModel/IListSource.cs
 System.ComponentModel/ImmutableObjectAttribute.cs
 System.ComponentModel/InheritanceAttribute.cs
 System.ComponentModel/InheritanceLevel.cs
+System.ComponentModel/InitializationEventAttribute.cs
 System.ComponentModel/INotifyPropertyChanged.cs
 System.ComponentModel/InstallerTypeAttribute.cs
 System.ComponentModel/Int16Converter.cs