Click here to Skip to main content
15,887,249 members
Home / Discussions / C#
   

C#

 
AnswerRe: Asynchronous downloading in C# Pin
Peace ON30-Apr-10 22:50
Peace ON30-Apr-10 22:50 
GeneralRe: Asynchronous downloading in C# Pin
Sunil G30-Apr-10 23:07
Sunil G30-Apr-10 23:07 
AnswerRe: Asynchronous downloading in C# [modified] Pin
Peace ON2-May-10 22:18
Peace ON2-May-10 22:18 
AnswerRe: Asynchronous downloading in C# Pin
Ravi Bhavnani1-May-10 14:15
professionalRavi Bhavnani1-May-10 14:15 
AnswerRe: Asynchronous downloading in C# Pin
Abdul Rahman Hamidy2-May-10 22:53
Abdul Rahman Hamidy2-May-10 22:53 
QuestionHow to make line hover when hovering with mouse in Richtext control Pin
Natural_Demon30-Apr-10 11:38
Natural_Demon30-Apr-10 11:38 
AnswerRe: How to make line hover when hovering with mouse in Richtext control Pin
Abhinav S30-Apr-10 18:25
Abhinav S30-Apr-10 18:25 
QuestionIs this good code practice? Pin
venomation30-Apr-10 10:08
venomation30-Apr-10 10:08 
I used the following code in a programming lesson to help me with a project but the lecturer says it is hard to maintain although I made it like that for better manageability:

static List<Person> _person = new List<Person>();
static void Main()
{
    Dictionary<string, Action> methodList = new Dictionary<string, Action>();

    methodList.Add("1", (() =>
        _person.ForEach(s => Console.WriteLine("{0} {1}", s.Name, s.Title))));

    _person.Add(new Person( "James","Prog" ));
    _person.Add(new Person( "Claire","Illu"));

    Console.WriteLine("Press 1 to show all data or 2 to quit");

    string input = Console.ReadLine();
    if (methodList.ContainsKey(input)) methodList[input]();

    Console.Read();

}

AnswerRe: Is this good code practice? Pin
#realJSOP30-Apr-10 11:38
mve#realJSOP30-Apr-10 11:38 
GeneralRe: Is this good code practice? Pin
venomation30-Apr-10 11:42
venomation30-Apr-10 11:42 
GeneralRe: Is this good code practice? Pin
#realJSOP30-Apr-10 12:02
mve#realJSOP30-Apr-10 12:02 
GeneralRe: Is this good code practice? Pin
PIEBALDconsult30-Apr-10 13:27
mvePIEBALDconsult30-Apr-10 13:27 
GeneralRe: Is this good code practice? Pin
harold aptroot30-Apr-10 11:55
harold aptroot30-Apr-10 11:55 
GeneralRe: Is this good code practice? Pin
#realJSOP30-Apr-10 12:00
mve#realJSOP30-Apr-10 12:00 
GeneralRe: Is this good code practice? Pin
harold aptroot30-Apr-10 12:04
harold aptroot30-Apr-10 12:04 
GeneralRe: Is this good code practice? Pin
#realJSOP30-Apr-10 12:09
mve#realJSOP30-Apr-10 12:09 
GeneralRe: Is this good code practice? Pin
PIEBALDconsult30-Apr-10 12:50
mvePIEBALDconsult30-Apr-10 12:50 
GeneralRe: Is this good code practice? Pin
Roger Wright30-Apr-10 16:29
professionalRoger Wright30-Apr-10 16:29 
GeneralRe: Is this good code practice? Pin
Pete O'Hanlon30-Apr-10 20:37
mvePete O'Hanlon30-Apr-10 20:37 
AnswerRe: Is this good code practice? Pin
PIEBALDconsult30-Apr-10 12:00
mvePIEBALDconsult30-Apr-10 12:00 
GeneralRe: Is this good code practice? Pin
venomation30-Apr-10 12:22
venomation30-Apr-10 12:22 
GeneralRe: Is this good code practice? Pin
harold aptroot30-Apr-10 12:26
harold aptroot30-Apr-10 12:26 
GeneralRe: Is this good code practice? Pin
venomation30-Apr-10 12:49
venomation30-Apr-10 12:49 
GeneralRe: Is this good code practice? Pin
PIEBALDconsult30-Apr-10 12:54
mvePIEBALDconsult30-Apr-10 12:54 
GeneralRe: Is this good code practice? Pin
harold aptroot30-Apr-10 12:58
harold aptroot30-Apr-10 12:58 

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.