本文整理汇总了C#中Delegate.GetMethodInfo方法的典型用法代码示例。如果您正苦于以下问题:C# Delegate.GetMethodInfo方法的具体用法?C# Delegate.GetMethodInfo怎么用?C# Delegate.GetMethodInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Delegate
的用法示例。
在下文中一共展示了Delegate.GetMethodInfo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoteInvokeRaw
/// <summary>Invokes the method from this assembly in another process using the specified arguments.</summary>
/// <param name="method">The method to invoke.</param>
/// <param name="args">The arguments to pass to the method.</param>
/// <param name="start">true if this function should Start the Process; false if that responsibility is left up to the caller.</param>
/// <param name="psi">The ProcessStartInfo to use, or null for a default.</param>
internal static RemoteInvokeHandle RemoteInvokeRaw(Delegate method, string unparsedArg, bool start, ProcessStartInfo psi)
{
return RemoteInvoke(method.GetMethodInfo(), new[] { unparsedArg }, start, psi);
}
示例2: RemoteInvokeRaw
/// <summary>Invokes the method from this assembly in another process using the specified arguments.</summary>
/// <param name="method">The method to invoke.</param>
/// <param name="args">The arguments to pass to the method.</param>
/// <param name="options">Options to use for the invocation.</param>
internal static RemoteInvokeHandle RemoteInvokeRaw(Delegate method, string unparsedArg,
RemoteInvokeOptions options = null)
{
return RemoteInvoke(method.GetMethodInfo(), new[] { unparsedArg }, options);
}