Vs中的接口Vs类(WPFApplication和WIndows应用程序) [英] Interface Vs Class in (WPFApplication and WIndows Application)

查看:185
本文介绍了Vs中的接口Vs类(WPFApplication和WIndows应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我有个问题.我正在使用Web参考( https://api.betfair.com/global/v3/BFGlobalService.wsdl [ ^ ])在Windows应用程序和Wpf应用程序中.
当我在Windows应用程序中使用它时,有BFGlobalService类.但是当我在WPF应用程序中使用它时,BFGlobalService显示为接口.我想让该类的对象在我的项目中使用.

请对此提供帮助.

谢谢

Hello ,
I have a problem. I am using Web Reference(https://api.betfair.com/global/v3/BFGlobalService.wsdl[^]) in Windows Application and Wpf Application.
When i use it in windows application There is BFGlobalService Class. But when i use it in WPF Application BFGlobalService shows as interface. I want to make object of the class to use in my project.

Please help me regarding this.

Thanks

推荐答案

好的,我知道了.服务参考和网络参考之间是否有区别?我首先将其添加为服务参考,但是当我将其更改为Web参考时,它就可以使用.
OKay I got it. IS there difference between Service reference and web reference. I first add it as a service refeernce but when i change it in to web reference it works.


这篇关于Vs中的接口Vs类(WPFApplication和WIndows应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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