Alex Rivera | Logout

Empty ILookup<K, T>

Asked 2011-07-25T19:46:12.327
49

I have a method that returns an ILookup. In some cases I want to return an empty ILookup as an early exit. What is the best way of constructing an empty ILookup?

Edit
Report

1 Answer

-5

You can return null

or Exception

But you should note it in class comment

Added:+ This is more obvious than some extension method

answered 2011-07-25T19:53:05.537

Your Answer