diff options
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/Utils.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.UI/Utils.cs | 34 |
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;
+ }
+ }
+}
|