Answered Questions

  • C# Program to test efficient coding

    You have several instances of the following class (User). Provide a class with three methods:"AddUser" accepts a User instance as a parameter and add it to a collection."GetUser" accepts a UserID as a parameter and returns the corresponding User instance. It is important that this executes quickly as it will be used often."GetOrderedUserArray" returns an array of User instances ordered by UserID....

    jankajg

    • Sep 25th, 2010

    @asaf122 - your method can be improved a bit by using list. Find even better by lambda expressions) here is howclass UserManager{private List list; internal List List{get { return list; }set { list va...