有关自定义事件的信息 [英] Info regarding custom events

查看:103
本文介绍了有关自定义事件的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,任何人都可以向我解释如何实现自定义事件或提出有关此问题的文章.我读过很多文章,但是由于我是新手,所以我对如何实现它没有正确的认识.
在此先感谢.

解决方案

看看 ^ ].您可能还会发现对CodeProject文章的搜索将为您找到一些有用的示例.


您好,
您可以查看书签"列表中的这些文章.

1) http://www.blackwasp.co.uk/CSharpEvents.aspx [ http://www.blackwasp.co.uk/CSharpEventAccessors.aspx [ ^ ]

3)一篇非常详细的文章:要学习事件,您还必须对代表有一个了解.进行检查: http://www.dreamincode.net/forums/topic/220479 -delegates-lambdas-and-events/ [ ^ ]

4)在CodeProject上的另一篇最佳文章: C#事件实施基础知识,最佳实践和约定 [ ^ ]

我认为这足以让您对事件有个好主意.
祝你好运,希望这能帮到你. :thumbsup:

更新:

5)另外一篇出色的文章,我知道我缺少了一些东西! www.akadia.com/services/dotnet_delegates_and_events.html [ www.codeproject.com/KB/cs/WeakEvents.aspx [ ^ ]


Hello, can anyone explain me how to implement custom events or suggest an article regarding that. i have read many articles but i''m not getting proper idea of how to implement it as i''m a newbie.
Thanks in advance.

解决方案

Take a look at this article[^] on MSDN. You may also find that a search of the CodeProject articles will find you some useful samples.


Hi,
You can have a look at these articles which were in my Bookmarks list.

1) http://www.blackwasp.co.uk/CSharpEvents.aspx[^]

2) Second part: http://www.blackwasp.co.uk/CSharpEventAccessors.aspx[^]

3) A very detailed article: To learn events, you must also have an idea about delegates. Check it out: http://www.dreamincode.net/forums/topic/220479-delegates-lambdas-and-events/[^]

4) Another best article right here in CodeProject: C# Event Implementation Fundamentals, Best Practices and Conventions[^]

I think this should be enough for you to get a good idea about events.
Good luck and hope this helps. :thumbsup:

Update:

5) One more excellent article, I knew I was missing something! www.akadia.com/services/dotnet_delegates_and_events.html[^]

6) An advanced CodeProject article: www.codeproject.com/KB/cs/WeakEvents.aspx[^]


这篇关于有关自定义事件的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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