Click here to Skip to main content
15,913,467 members
Home / Discussions / C#
   

C#

 
QuestionChanging DataColume Datatype!! Pin
Navneet Hegde1-Nov-07 22:37
Navneet Hegde1-Nov-07 22:37 
Questiondouble precision problem Pin
Seraph_summer1-Nov-07 22:21
Seraph_summer1-Nov-07 22:21 
AnswerRe: double precision problem Pin
il_masacratore1-Nov-07 22:33
il_masacratore1-Nov-07 22:33 
AnswerRe: double precision problem Pin
Malcolm Smart1-Nov-07 23:04
Malcolm Smart1-Nov-07 23:04 
QuestionCosole Delegates Pin
new2pgrmg1-Nov-07 22:03
new2pgrmg1-Nov-07 22:03 
AnswerRe: Cosole Delegates Pin
Guffa1-Nov-07 22:13
Guffa1-Nov-07 22:13 
GeneralRe: Console Delegates Pin
new2pgrmg1-Nov-07 22:23
new2pgrmg1-Nov-07 22:23 
AnswerRe: Console Delegates Pin
Guffa1-Nov-07 23:20
Guffa1-Nov-07 23:20 
new2pgrmg wrote:
what is the advantage in using delegates in this code?


None.

Delegates are used when the method to call is not known when creating the code that will call it, or when the same code will be used to call different methods.

For example, you use a delegate when calling the List<T>.Find method:

List<int> list = new List<int>(new int[] { 1, 2, 3, 4, 5 } );<br />
int firstEven = list.Find(delegate(int x) { return x % 2 == 0; } );


---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams

QuestionHow to detect a file if it is locked by another process Pin
vuthaianh1-Nov-07 22:01
vuthaianh1-Nov-07 22:01 
AnswerRe: How to detect a file if it is locked by another process Pin
kalyan_24162-Nov-07 0:38
kalyan_24162-Nov-07 0:38 
AnswerRe: How to detect a file if it is locked by another process Pin
Jimmanuel2-Nov-07 2:45
Jimmanuel2-Nov-07 2:45 
QuestionCan I cast process to instance of an object ? Pin
eyosha1-Nov-07 21:30
eyosha1-Nov-07 21:30 
QuestionWMP COM Operations in C#.net 2.0 Pin
nayabsiddiqi1-Nov-07 21:15
nayabsiddiqi1-Nov-07 21:15 
QuestionGreat problem in my UI... Pin
Pankaj - Joshi1-Nov-07 20:17
Pankaj - Joshi1-Nov-07 20:17 
AnswerRe: Great problem in my UI... Pin
Ronni Marker21-Mar-09 2:43
Ronni Marker21-Mar-09 2:43 
Questionhow to get values from different tables and get in to a grid? Pin
MS Lee1-Nov-07 19:37
MS Lee1-Nov-07 19:37 
AnswerRe: how to get values from different tables and get in to a grid? Pin
Pankaj - Joshi1-Nov-07 19:42
Pankaj - Joshi1-Nov-07 19:42 
GeneralRe: how to get values from different tables and get in to a grid? Pin
MS Lee1-Nov-07 19:51
MS Lee1-Nov-07 19:51 
AnswerRe: how to get values from different tables and get in to a grid? Pin
Nouman Bhatti1-Nov-07 19:44
Nouman Bhatti1-Nov-07 19:44 
GeneralRe: how to get values from different tables and get in to a grid? Pin
MS Lee1-Nov-07 19:50
MS Lee1-Nov-07 19:50 
AnswerRe: how to get values from different tables and get in to a grid? Pin
MS Lee1-Nov-07 19:48
MS Lee1-Nov-07 19:48 
QuestionBook For Three tier Architecture Pin
help as an alias1-Nov-07 19:37
help as an alias1-Nov-07 19:37 
AnswerRe: Book For Three tier Architecture Pin
Pankaj - Joshi1-Nov-07 19:45
Pankaj - Joshi1-Nov-07 19:45 
GeneralRe: Book For Three tier Architecture Pin
help as an alias1-Nov-07 20:10
help as an alias1-Nov-07 20:10 
GeneralRe: Book For Three tier Architecture Pin
Pankaj - Joshi1-Nov-07 20:31
Pankaj - Joshi1-Nov-07 20:31 

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.