System::Collections::Generic::BaseDictionary::GetValueOrDefault 方法

BaseDictionary::GetValueOrDefault(const key_t&) const method

如果找到则返回值;否则返回 Value()

mapped_t System::Collections::Generic::BaseDictionary<Map>::GetValueOrDefault(const key_t &key) const override

另见

BaseDictionary::GetValueOrDefault(const key_t&, const mapped_t&) const method

如果找到则返回值;否则返回 defaultValue

mapped_t System::Collections::Generic::BaseDictionary<Map>::GetValueOrDefault(const key_t &key, const mapped_t &defaultValue) const override

另见