VS2017社区中类的C#接口实现 [英] C# Interface implementation for a class in VS2017 Community

查看:282
本文介绍了VS2017社区中类的C#接口实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,如果一个接口中没有方法定义,并且该类实现了接口但没有定义的方法,那么VS2017不会标记类的红色下划线有问题?如果编译项目,VS2017
符合它并且没有错误,因为该类的接口实现已完成?

So if one doesn't have an method definition in the Interface and the class implements the Interface but doesn't have the defined method, VS2017 doesn't flag there is something wrong with the red underline on the class? If one compiles the project, VS2017 complies it and there is no error, because Interface implementation for the class is complete?

VS2017中是否有一些开关我必须设置为这让它认识到没有实现类的接口?

Is there some switch in VS2017 I have to set for this to make it recognize that the Interface for a class is not implemented?

推荐答案

你好DA924x,

Hi DA924x,

感谢您在此发帖。





这篇关于VS2017社区中类的C#接口实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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