News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;
var scoreRecords = new[] { new {Name = "Alice", Score = 50},
    new {Name = "Bob" , Score = 40},
    new {Name = "Cathy", Score = 45}
  };

var scoreRecordsDict = scoreRecords.ToDictionary(sr => sr.Name);

Response.Write(scoreRecordsDict["BoB"]);
  1. { Name = Bob}

  2. { Name = Bob, Score = 40 }

  3. Name = Bob

  4. None of the above

Answer: Answer is d
Further Reading:

Useful resources, It will report error “The given key was not present in the dictionary.”

comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;