Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2003-06-23 16:06:08 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2003-06-23 16:06:08 +0400
commite885d25b8537386ba51ec52596641022db58061a (patch)
tree8d28654bf3c098c58fa4a2fab7df32e03bb51323 /mcs/class/System/System.ComponentModel
parent9674fba1f64f356a72452993764ae9287b6be38d (diff)
2003-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.ComponentModel/IExtenderProvider.cs: mono-stylized. * System.ComponentModel/IComNativeDescriptorHandler.cs: * System.ComponentModel/SyntaxCheck.cs: new files from Andreas Nahr. svn path=/trunk/mcs/; revision=15567
Diffstat (limited to 'mcs/class/System/System.ComponentModel')
-rw-r--r--mcs/class/System/System.ComponentModel/ChangeLog6
-rw-r--r--mcs/class/System/System.ComponentModel/IComNativeDescriptorHandler.cs30
-rw-r--r--mcs/class/System/System.ComponentModel/IExtenderProvider.cs9
-rw-r--r--mcs/class/System/System.ComponentModel/SyntaxCheck.cs53
4 files changed, 94 insertions, 4 deletions
diff --git a/mcs/class/System/System.ComponentModel/ChangeLog b/mcs/class/System/System.ComponentModel/ChangeLog
index 7f4eb3d59bd..a191019203a 100644
--- a/mcs/class/System/System.ComponentModel/ChangeLog
+++ b/mcs/class/System/System.ComponentModel/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * IExtenderProvider.cs: mono-stylized.
+ * IComNativeDescriptorHandler.cs:
+ * SyntaxCheck.cs: new files from Andreas Nahr.
+
2003-03-20 Dick Porter <dick@ximian.com>
* Win32Exception.cs: Made the fallback error more useful by
diff --git a/mcs/class/System/System.ComponentModel/IComNativeDescriptorHandler.cs b/mcs/class/System/System.ComponentModel/IComNativeDescriptorHandler.cs
new file mode 100644
index 00000000000..ecd0c7551be
--- /dev/null
+++ b/mcs/class/System/System.ComponentModel/IComNativeDescriptorHandler.cs
@@ -0,0 +1,30 @@
+//
+// System.ComponentModel.IComNativeDescriptorHandler.cs
+//
+// Author:
+// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) 2003 Andreas Nahr
+//
+
+using System;
+
+namespace System.ComponentModel
+{
+ public interface IComNativeDescriptorHandler
+ {
+ AttributeCollection GetAttributes (object component);
+ string GetClassName (object component);
+ TypeConverter GetConverter (object component);
+ EventDescriptor GetDefaultEvent (object component);
+ PropertyDescriptor GetDefaultProperty (object component);
+ object GetEditor (object component, Type baseEditorType);
+ EventDescriptorCollection GetEvents (object component);
+ EventDescriptorCollection GetEvents (object component, Attribute [] attributes);
+ string GetName (object component);
+ PropertyDescriptorCollection GetProperties (object component, Attribute [] attributes);
+ object GetPropertyValue (object component, int dispid, ref bool success);
+ object GetPropertyValue (object component, string propertyName, ref bool success);
+ }
+}
+
diff --git a/mcs/class/System/System.ComponentModel/IExtenderProvider.cs b/mcs/class/System/System.ComponentModel/IExtenderProvider.cs
index 6e3440d4d25..8156b4cf2be 100644
--- a/mcs/class/System/System.ComponentModel/IExtenderProvider.cs
+++ b/mcs/class/System/System.ComponentModel/IExtenderProvider.cs
@@ -8,10 +8,11 @@
using System;
-namespace System.ComponentModel {
-
- public interface IExtenderProvider {
- bool CanExtend( object extendee );
+namespace System.ComponentModel
+{
+ public interface IExtenderProvider
+ {
+ bool CanExtend (object extendee);
}
}
diff --git a/mcs/class/System/System.ComponentModel/SyntaxCheck.cs b/mcs/class/System/System.ComponentModel/SyntaxCheck.cs
new file mode 100644
index 00000000000..6bd896699b9
--- /dev/null
+++ b/mcs/class/System/System.ComponentModel/SyntaxCheck.cs
@@ -0,0 +1,53 @@
+//
+// System.ComponentModel.SyntaxCheck
+//
+// Author:
+// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) 2003 Andreas Nahr
+//
+
+using System.IO;
+
+namespace System.ComponentModel
+{
+ public class SyntaxCheck
+ {
+ private SyntaxCheck ()
+ {
+ }
+
+ [MonoTODO]
+ public static bool CheckMachineName (string value)
+ {
+ if (value == null || value.Trim () == "")
+ return false;
+
+ return Environment.MachineName.Equals (value);
+ }
+
+ [MonoTODO]
+ public static bool CheckPath (string value)
+ {
+ if (value == null || value.Trim () == "")
+ return false;
+
+ try {
+ Path.GetFullPath (value);
+ } catch {
+ return false;
+ }
+ return true;
+ }
+
+ [MonoTODO]
+ public static bool CheckRootedPath (string value)
+ {
+ if (value == null || value.Trim () == "")
+ return false;
+
+ return Path.IsPathRooted (value);
+ }
+ }
+}
+