GetValueOrDefault()

IDictionary::GetValueOrDefault(const TKey&) const method

Returns value if found; or Value() otherwise.

virtual TValue System::Collections::Generic::IDictionary<TKey, TValue>::GetValueOrDefault(const TKey &key) const

IDictionary::GetValueOrDefault(const TKey&, const TValue&) const method

Returns value if found; or defaultValue otherwise.

virtual TValue System::Collections::Generic::IDictionary<TKey, TValue>::GetValueOrDefault(const TKey &key, const TValue &defaultValue) const

See Also