Skip to content

Overload_CodeJam_Collections_CollectionExtensions_DefaultIfEmpty

Andrew Koryavchenko edited this page Jun 17, 2018 · 1 revision

CollectionExtensions.DefaultIfEmpty Method

Overload List

 

Name Description
Public methodStatic member DefaultIfEmpty(T)(List(T), T) Returns a new collection with default value if the collection is empty.
Public methodStatic member DefaultIfEmpty(T)(T[], T) Returns a new array with default value if the array is empty.
Public methodStatic member DefaultIfEmpty(TKey, TValue)(Dictionary(TKey, TValue), TKey, TValue) Returns a new dictionary with default value if the dictionary is empty.
Public methodStatic member DefaultIfEmpty(TKey, TValue)(Dictionary(TKey, TValue), TKey, TValue, IEqualityComparer(TKey)) Returns a new dictionary with default value if the dictionary is empty.
  Back to Top

See Also

Reference

CollectionExtensions Class
CodeJam.Collections Namespace

Clone this wiki locally