Browse Source

Added ContainsKey.

pull/8571/head
Steven Kirk 4 years ago
parent
commit
f07f64dbf4
  1. 6
      src/Avalonia.Base/Utilities/AvaloniaPropertyDictionary.cs

6
src/Avalonia.Base/Utilities/AvaloniaPropertyDictionary.cs

@ -104,6 +104,12 @@ namespace Avalonia.Utilities
InsertEntry(new Entry(property, value), index);
}
/// <summary>
/// Determines whether the collection contains the specified key.
/// </summary>
/// <param name="property">The key.</param>
public bool ContainsKey(AvaloniaProperty property) => TryGetEntry(property.Id, out _);
/// <summary>
/// Gets the key and value at the specified index.
/// </summary>

Loading…
Cancel
Save