Make DataProviderQuery.TryGetProperty more consistent

This commit is contained in:
Yoshi Askharoun
2023-05-23 20:28:40 -05:00
parent 1b26ce4d5f
commit f9414f1a5f
+8 -1
View File
@@ -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