mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* PropertyConverter -- Made compilable. Minor errors corrected * Utils -- Minor error svn path=/trunk/mcs/; revision=1601
35 lines
624 B
C#
35 lines
624 B
C#
/**
|
|
* Namespace: System.Web.UI
|
|
* Class: Utils
|
|
*
|
|
* Author: Gaurav Vaish
|
|
* Maintainer: [email protected]
|
|
* Implementation: yes
|
|
* Contact: <[email protected]>
|
|
* Status: ?%
|
|
*
|
|
* (C) Gaurav Vaish (2001)
|
|
*/
|
|
|
|
using System;
|
|
using System.Reflection;
|
|
|
|
namespace System.Web.UI
|
|
{
|
|
internal 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;
|
|
}
|
|
}
|
|
}
|