Hi all,
Is there a better way to cast an IList to List other than how I am doing it 
here:
 
get
{
    IList<IRecipeStep> result = (_recipeMode == Mode.Temp) ? 
_recipeUsersDictionary[AdminUserUid].RecipeSteps : _liveRecipe.RecipeSteps;
    PersistentGenericBag<IRecipeStep> bag = 
(PersistentGenericBag<IRecipeStep>)result;
    return new List<IRecipeStep>((IEnumerable<IRecipeStep>)bag);
}
 
I prefer to work with an List instead of an IList so I can  use the functional 
list processing with annonymous delegates.
 
Or can I do this with IList<> lists?
 
Cheers
 
[EMAIL PROTECTED]
_________________________________________________________________
Express yourself: design your homepage the way you want it with Live.com.
http://www.live.com/getstarted
===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to