Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get values after dictionary sorting by values with linq Pin
igalep13225-Mar-10 2:07
igalep13225-Mar-10 2:07 
GeneralRe: How to get values after dictionary sorting by values with linq Pin
igalep13225-Mar-10 5:04
igalep13225-Mar-10 5:04 
GeneralRe: How to get values after dictionary sorting by values with linq Pin
Keith Barrow25-Mar-10 5:25
professionalKeith Barrow25-Mar-10 5:25 
GeneralRe: How to get values after dictionary sorting by values with linq Pin
igalep13225-Mar-10 14:27
igalep13225-Mar-10 14:27 
AnswerRe: How to get values after dictionary sorting by values with linq Pin
lukaszbl25-Mar-10 2:04
lukaszbl25-Mar-10 2:04 
QuestionDelegates - What is the use of it? Pin
Praveen Raghuvanshi25-Mar-10 1:19
professionalPraveen Raghuvanshi25-Mar-10 1:19 
AnswerRe: Delegates - What is the use of it? Pin
harold aptroot25-Mar-10 1:38
harold aptroot25-Mar-10 1:38 
AnswerRe: Delegates - What is the use of it? [modified] Pin
Keith Barrow25-Mar-10 1:39
professionalKeith Barrow25-Mar-10 1:39 
I'd read this:

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

Especially the linked page "When to Use Delegates instead of interfaces".

Delegates are very useful, each time you subsribe to an event, delegates are used. The section on anonmous methods is interesting, as you then don't need an "actual" method. The are also used under the hood a lot in LINQ, so for example:

C#
List<MyType> list = new List<MyType>();
list.Sort((x,y) => x.AString.Compare(y.AString):


The Labmda being used is really an anonymous delegate.


Also Action and Action<T> are worth looking up, they prevent a lot of needless delegate declarations
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

modified on Thursday, March 25, 2010 7:56 AM

GeneralRe: Delegates - What is the use of it? Pin
Not Active25-Mar-10 1:44
mentorNot Active25-Mar-10 1:44 
GeneralRe: Delegates - What is the use of it? Pin
DaveyM6925-Mar-10 1:48
professionalDaveyM6925-Mar-10 1:48 
GeneralRe: Delegates - What is the use of it? Pin
Keith Barrow25-Mar-10 1:56
professionalKeith Barrow25-Mar-10 1:56 
QuestionCrystal Report Pin
Syed Shahid Hussain25-Mar-10 1:09
Syed Shahid Hussain25-Mar-10 1:09 
QuestionGet SQL Server 2005 Database Table Details Dynamically Pin
thanushkag25-Mar-10 0:30
thanushkag25-Mar-10 0:30 
AnswerRe: Get SQL Server 2005 Database Table Details Dynamically Pin
Mycroft Holmes25-Mar-10 1:04
professionalMycroft Holmes25-Mar-10 1:04 
AnswerRe: Get SQL Server 2005 Database Table Details Dynamically Pin
Ravi Bhavnani25-Mar-10 2:06
professionalRavi Bhavnani25-Mar-10 2:06 
QuestionResource File Pin
Syed Shahid Hussain25-Mar-10 0:29
Syed Shahid Hussain25-Mar-10 0:29 
AnswerRe: Resource File Pin
Tony Richards25-Mar-10 2:43
Tony Richards25-Mar-10 2:43 
GeneralRe: Resource File Pin
Syed Shahid Hussain25-Mar-10 2:48
Syed Shahid Hussain25-Mar-10 2:48 
AnswerRe: Resource File Pin
Bernhard Hiller25-Mar-10 3:18
Bernhard Hiller25-Mar-10 3:18 
GeneralRe: Resource File Pin
Syed Shahid Hussain25-Mar-10 4:09
Syed Shahid Hussain25-Mar-10 4:09 
QuestionSerialization Pin
vamsimohan2125-Mar-10 0:11
vamsimohan2125-Mar-10 0:11 
AnswerRe: Serialization Pin
Keith Barrow25-Mar-10 0:17
professionalKeith Barrow25-Mar-10 0:17 
GeneralRe: Serialization Pin
vamsimohan2125-Mar-10 0:29
vamsimohan2125-Mar-10 0:29 
GeneralRe: Serialization Pin
Keith Barrow25-Mar-10 1:01
professionalKeith Barrow25-Mar-10 1:01 
QuestionDynamically change Crystal Report Viewer source Pin
jamesc6924-Mar-10 23:13
jamesc6924-Mar-10 23:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.