TryGetValue method
Tries to get the e-mail address associated with the specified key.
The key.
When this method returns, contains the e-mail address associated with the specified key,
if the key is found; otherwise, null. This parameter is passed uninitialized.
Implementation
bool TryGetValue(
EmailAddressKey key,
OutParam<EmailAddress> emailAddressOutParam,
) {
if (Entries.containsKey(key)) {
emailAddressOutParam.param = Entries[key]!.EmailAddress;
return true;
} else {
emailAddressOutParam.param = null;
return false;
}
}