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:
authorGaurav Vaish <gvaish@mono-cvs.ximian.com>2001-12-16 21:17:35 +0300
committerGaurav Vaish <gvaish@mono-cvs.ximian.com>2001-12-16 21:17:35 +0300
commitef8bc3930f89f03cb77217d89056d7f5871c9398 (patch)
treed4b8f9cc4b5fcc0445870c3dfb9f88f8c7aac99b /mcs/class/System.Web/System.Web.UI/Utils.cs
parent15b98547ac443bc45affcda54bbd123a40148565 (diff)
2001-12-17 Gaurav Vaish <Gvaish@iitk.ac.in>
* PropertyConverter -- I needed it. Completed * Utils -- Also needed this. Initial implementation svn path=/trunk/mcs/; revision=1593
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/Utils.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI/Utils.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/Utils.cs b/mcs/class/System.Web/System.Web.UI/Utils.cs
new file mode 100644
index 00000000000..e696e75e44d
--- /dev/null
+++ b/mcs/class/System.Web/System.Web.UI/Utils.cs
@@ -0,0 +1,34 @@
+/**
+ * Namespace: System.Web.UI
+ * Class: Utils
+ *
+ * Author: Gaurav Vaish
+ * Maintainer: gvaish@iitk.ac.in
+ * Implementation: yes
+ * Contact: <gvaish@iitk.ac.in>
+ * Status: ?%
+ *
+ * (C) Gaurav Vaish (2001)
+ */
+
+using System;
+using System.Reflection;
+
+namespace System.Web.UI
+{
+ private class Utils
+ {
+ internal static object InvokeMethod(MethodInfo info, object obj, object[] parameters)
+ {
+ object retVal = null;
+ try
+ {
+ retVal = info.Invoke(obj, parameters);
+ } catch(TargetInvocationException tie)
+ {
+ throw tie.InnerException;
+ }
+ return retVal;
+ }
+ }
+}