本文整理汇总了C#中CallingConventions.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# CallingConventions.ToString方法的具体用法?C# CallingConventions.ToString怎么用?C# CallingConventions.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CallingConventions
的用法示例。
在下文中一共展示了CallingConventions.ToString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetArrayMethod_JaggedArray
public void GetArrayMethod_JaggedArray(CallingConventions callingConvention)
{
ModuleBuilder module = Helpers.DynamicModule();
VerifyGetArrayMethod(module, typeof(ModuleBuilderGetArrayMethod[][]), callingConvention.ToString() + "1", callingConvention, typeof(int), new Type[] { typeof(object) });
VerifyGetArrayMethod(module, typeof(ModuleBuilderGetArrayMethod[][]), callingConvention.ToString() + "2", callingConvention, typeof(int), new Type[] { typeof(object), typeof(int), typeof(ModuleBuilderGetArrayMethod) });
}
示例2: GetArrayMethod_ValidArrayValues_ReferenceParameterType
public void GetArrayMethod_ValidArrayValues_ReferenceParameterType(CallingConventions callingConvention)
{
ModuleBuilder module = Helpers.DynamicModule();
VerifyGetArrayMethod(module, typeof(ModuleBuilderGetArrayMethod[]), callingConvention.ToString() + "1", callingConvention, typeof(int), new Type[] { typeof(object) });
VerifyGetArrayMethod(module, typeof(ModuleBuilderGetArrayMethod[]), callingConvention.ToString() + "2", callingConvention, typeof(int), new Type[] { typeof(object), typeof(string), typeof(ModuleBuilderGetArrayMethod) });
}
示例3: CallingConvention_InstanceMethods
public void CallingConvention_InstanceMethods(CallingConventions callingConvention)
{
TypeBuilder type = Helpers.DynamicType(TypeAttributes.Abstract);
MethodBuilder method = type.DefineMethod(callingConvention.ToString(), MethodAttributes.Public, callingConvention);
Assert.Equal(callingConvention | CallingConventions.HasThis, method.CallingConvention);
}
示例4: GetArrayMethod_NullParameters
public void GetArrayMethod_NullParameters(CallingConventions callingConvention)
{
ModuleBuilder module = Helpers.DynamicModule();
VerifyGetArrayMethod(module, typeof(ModuleBuilderGetArrayMethod[]), callingConvention.ToString(), callingConvention, typeof(void), null);
}
示例5: GetArrayMethod_ValidArrayValues_ReferenceReturnType
public void GetArrayMethod_ValidArrayValues_ReferenceReturnType(CallingConventions callingConvention)
{
ModuleBuilder module = Helpers.DynamicModule();
VerifyGetArrayMethod(module, typeof(object[]), callingConvention.ToString(), callingConvention, typeof(object), new Type[0]);
}