mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Make DataProviderQuery.TryGetProperty more consistent
This commit is contained in:
@@ -94,7 +94,14 @@ namespace Microsoft.Iris
|
||||
{
|
||||
try
|
||||
{
|
||||
value = (T)GetProperty(propertyName);
|
||||
var obj = GetProperty(propertyName);
|
||||
if (obj == null)
|
||||
{
|
||||
value = default;
|
||||
return false;
|
||||
}
|
||||
|
||||
value = (T)obj;
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user