Use the new more efficient .NET 9 Lock type (#18015)

This commit is contained in:
Henrik
2025-01-20 11:41:13 +01:00
committed by GitHub
parent 87916eb9cf
commit ed08923b46
32 changed files with 37 additions and 37 deletions

View File

@@ -14,7 +14,7 @@ internal class PublishedElementPropertyBase : PublishedPropertyBase
// means faster execution, but uses memory - not sure if we want it
// so making it configurable.
private const bool FullCacheWhenPreviewing = true;
private readonly object _locko = new();
private readonly Lock _locko = new();
private readonly object? _sourceValue;
protected readonly bool IsMember;
protected readonly bool IsPreviewing;