Przeglądaj źródła

* ToolboxItem.cs: GetType (IDesignerHost) is 2.0 only.

svn path=/trunk/mcs/; revision=81101
Gert Driesen 18 lat temu
rodzic
commit
db381a8ffa

+ 4 - 0
mcs/class/System.Drawing/System.Drawing.Design/ChangeLog

@@ -1,3 +1,7 @@
+2007-06-30  Gert Driesen  <[email protected]>
+
+	* ToolboxItem.cs: GetType (IDesignerHost) is 2.0 only.
+
 2007-06-08  Ivan N. Zlatev <[email protected]>
 
 	* ToolboxItem.cs: Implement some 2.0 stuff.

+ 2 - 0
mcs/class/System.Drawing/System.Drawing.Design/ToolboxItem.cs

@@ -238,10 +238,12 @@ namespace System.Drawing.Design
 			return string.Concat (TypeName, DisplayName).GetHashCode ();
 		}
 
+#if NET_2_0
 		public Type GetType (IDesignerHost host)
 		{
 			return GetType (host, this.AssemblyName,  this.TypeName,  false);
 		}
+#endif
 
 		protected virtual Type GetType (IDesignerHost host, AssemblyName assemblyName, string typeName, bool reference)
 		{