无法将Long转换为System.Type [英] Cannot convert Long to System.Type

查看:73
本文介绍了无法将Long转换为System.Type的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

请针对VB.net 2010中的此错误以及如何解决此问题提出建议


未为公共共享函数格式(enumType为System.Type,值为Object,格式为String)As String"的参数"format"指定参数.

不能将类型"Long"的值转换为"System.Type".

Hi all,

Please advice for this error in VB.net 2010 and how to overcome this

Argument not specified for parameter ''format'' of ''Public Shared Function Format(enumType As System.Type, value As Object, format As String) As String''.

Value of type ''Long'' cannot be converted to ''System.Type''.

推荐答案

确实很简单,即使没有看到您的代码也是如此.您提供了Long类型的变量来代替Type对象.

我们不知道您要做什么以及代码是什么样子,因此几乎不可能确切告诉您正确的解决方案.
Simple really, even without seeing your code. You supplied a variable of type Long in place of a Type object.

We have no idea what you''re trying to do and what the code looks like so it''s pretty much impossible to tell you exactly what the correct fix is going to be.


这篇关于无法将Long转换为System.Type的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆