该类型是泛型中的ClassName [英] The type is a ClassName in generics

查看:70
本文介绍了该类型是泛型中的ClassName的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个代码..

请看看......

I have this code ..
Please have a look...

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号

推荐答案

编译时你的编译器是不是会给你一个警告?阅读那个警告。
Doesn''t your compiler give you a warning when you compile that? Read that warning.


我没有看到这个警告。那么这里的Number被视为类型名称?

为什么警告,为什么不出错?
I didn''t see that warning. So here Number is treated as type name?
Why warning, why not error?


为什么它会出错?您可以自担风险隐藏这些课程。
Why should it be an error? You are allowed to hide those classes at your own peril.


这篇关于该类型是泛型中的ClassName的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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