本文整理匯總了C#中Mosa.Compiler.TypeSystem.RuntimeMethod.ToString方法的典型用法代碼示例。如果您正苦於以下問題:C# RuntimeMethod.ToString方法的具體用法?C# RuntimeMethod.ToString怎麽用?C# RuntimeMethod.ToString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Mosa.Compiler.TypeSystem.RuntimeMethod
的用法示例。
在下文中一共展示了RuntimeMethod.ToString方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ArgumentNullException
void ICompilationSchedulerStage.ScheduleMethodForCompilation(RuntimeMethod method)
{
if (method == null)
throw new ArgumentNullException(@"method");
if (!method.IsGeneric)
{
Trace(CompilerEvent.SchedulingMethod, method.ToString());
methodQueue.Enqueue(method);
}
}
示例2: CompileMethod
private void CompileMethod(RuntimeMethod method)
{
Trace(CompilerEvent.CompilingMethod, method.ToString());
using (IMethodCompiler mc = compiler.CreateMethodCompiler(this, method.DeclaringType, method))
{
mc.Compile();
//try
//{
// mc.Compile();
//}
//catch (Exception e)
//{
// HandleCompilationException(e);
// throw;
//}
}
}
示例3: FromMethod
/// <summary>
/// Creates a symbol operand for the given method.
/// </summary>
/// <param name="method">The method to create a symbol operand for.</param>
/// <returns>The created symbol operand.</returns>
public static SymbolOperand FromMethod(RuntimeMethod method)
{
string symbolName = method.ToString();
return new SymbolOperand(BuiltInSigType.IntPtr, symbolName);
}
示例4: Patch
private void Patch(RuntimeMethod targetMethod, RuntimeMethod method)
{
Trace(InternalTrace.CompilerEvent.Plug, targetMethod.ToString() + " with " + method.ToString());
plugMethods.Add(targetMethod, method);
}