Skip to content

Commit

Permalink
fix: use value instead of an array reference
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Jul 22, 2024
1 parent b1b6fb2 commit 6d9adb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CommonLib/DirectoryObjects/DirectoryEntryWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public bool TryGetProperty(string propertyName, out string value) {
return false;
}

var s = _entry.Properties[propertyName][0];
var s = _entry.Properties[propertyName].Value;
value = s switch {
string st => st,
int i => i.ToString(),
Expand Down

0 comments on commit 6d9adb1

Please sign in to comment.