C#.NET编程 [英] C#.NET programming

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

问题描述

如何在C#.NET中定义接口?
如何在C#.NET中声明委托?

How to define the interface in C#.NET?
how to declare the delegate in C#.NET?

推荐答案

如果未预订,则只需使用此链接即可获取有关它们的所有信息:Google搜索链接 [ ^ ]
If not book, then just use this link to get all information regarding them:Google Search Link[^]


Jeeze-有点谷歌搜索就很长一段时间了"伙计.

界面:

http://msdn.microsoft.com/en-us/library/87d83y5b(VS .80).aspx [ ^ ]

代表:

http://msdn.microsoft.com/en-us/library/ms173171(VS .80).aspx [ ^ ]

如果您不打算主动使用Google这样的简单内容,那么您如何期望能够解决您必然会遇到的真正困难的问题?
Jeeze - a little googling goes a long freakin'' way dude.

Interface:

http://msdn.microsoft.com/en-us/library/87d83y5b(VS.80).aspx[^]

Delegate:

http://msdn.microsoft.com/en-us/library/ms173171(VS.80).aspx[^]

Ifyou''re not going to take the initiative to google simple stuff like this, how do you expect to be able to solve the really hard problems you''re bound to encounter?


界面:
interface IMyInterface
   {
   void MethodToImplement();
   }

代表:

delegate MyReturnType myDelegate();
myDelegate del = new myDelegate(myMethod)

private MyReturnType myMethod() 
   { 
   return new MyReturnType(); 
   }



现在尝试学习使用Google并了解它的含义...

(我只是回答将其从未回答的"问题列表中删除)



Now try to learn to use Google and find out what it means...

(I only answered to remove this from the "unanswered" questions list)


这篇关于C#.NET编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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