I use EntityCollection as datasource for combox as dropdown for a silverlight app with ria services. If I know the item selected in the collection, say its ID=123, then I can use this ID to find out the selected in EntityCollection. How to write the general function for this purpose?
say something like:
public Entity<T> GetEntity(EntityCollection<T> collection, string ID)
{
}