Browse Source
Merge pull request #4800 from YohDeadfall/redundant-cast
Removed redundant cast
pull/4764/head
Dariusz Komosiński
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
10 deletions
-
src/Avalonia.Base/AvaloniaObject.cs
|
|
|
@ -113,16 +113,8 @@ namespace Avalonia |
|
|
|
/// <param name="binding">The binding information.</param>
|
|
|
|
public IBinding this[IndexerDescriptor binding] |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return new IndexerBinding(this, binding.Property, binding.Mode); |
|
|
|
} |
|
|
|
|
|
|
|
set |
|
|
|
{ |
|
|
|
var sourceBinding = value as IBinding; |
|
|
|
this.Bind(binding.Property, sourceBinding); |
|
|
|
} |
|
|
|
get { return new IndexerBinding(this, binding.Property, binding.Mode); } |
|
|
|
set { this.Bind(binding.Property, value); } |
|
|
|
} |
|
|
|
|
|
|
|
public bool CheckAccess() => Dispatcher.UIThread.CheckAccess(); |
|
|
|
|