c#

xinanhai 2010-09-03 11:37:21
恳请一下 下面的代码怎么理解 c#
ILayer player=new Featurelayerclass();
IGeofeaturelayer pGeofeaturelayer: ??????????
pGeofeaturelayer=(IGeofeaturelayer) player ??????
...全文
67 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
卧_槽 2010-09-03
  • 打赏
  • 举报
回复
[Quote=引用楼主 xinanhai 的回复:]
恳请一下 下面的代码怎么理解 c#
ILayer player=new Featurelayerclass();
IGeofeaturelayer pGeofeaturelayer: ??????????
pGeofeaturelayer=(IGeofeaturelayer) player ??????
[/Quote]

从编写规则来看ILayer是一个接口。IGeofeaturelayer 看起来也是一个接口。
Featurelayerclass应该是俩接口都继承了。

反正写的不好,特乱。
zhq_442577358 2010-09-03
  • 打赏
  • 举报
回复
一塌糊涂
ztenv 2010-09-03
  • 打赏
  • 举报
回复
使用了非英文的字符串,并且你的电脑上没有那个字库,导致了现在的情况;
bdmh 2010-09-03
  • 打赏
  • 举报
回复
IGeofeaturelayer pGeofeaturelayer,声明IGeofeaturelayer 类型的变量
pGeofeaturelayer=(IGeofeaturelayer) player ,将player 转为IGeofeaturelayer类型
xinanhai 2010-09-03
  • 打赏
  • 举报
回复
多谢一楼!应该是这样
woshierbiluanzi 2010-09-03
  • 打赏
  • 举报
回复
学习了。

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧