We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c682a6 commit 4d58df6Copy full SHA for 4d58df6
src/ProgressOnderwijsUtils/Pocos/PocoProperties.cs
@@ -37,13 +37,10 @@ public Type PocoType
37
38
public bool TryGetByName(string name, [NotNullWhen(true)] out IPocoProperty<T>? property)
39
{
40
- if (IndexByName.TryGetValue(name, out var index)) {
41
- property = Properties[index];
42
- return true;
43
- } else {
44
- property = null;
45
- return false;
46
- }
+ property = IndexByName.TryGetValue(name, out var index)
+ ? Properties[index]
+ : null;
+ return property != null;
47
}
48
49
public IPocoProperty<T> GetByName(string name)
0 commit comments