diff --git a/Perspex.Base/Collections/IPerspexList.cs b/Perspex.Base/Collections/IPerspexList.cs index 04e9c2f25e..3684f0fb49 100644 --- a/Perspex.Base/Collections/IPerspexList.cs +++ b/Perspex.Base/Collections/IPerspexList.cs @@ -6,15 +6,31 @@ namespace Perspex.Collections { - using System.Collections; using System.Collections.Generic; + /// + /// A notiftying list. + /// + /// The type of the items in the list. public interface IPerspexList : IList, IPerspexReadOnlyList { + /// + /// Adds multiple items to the collection. + /// + /// The items. void AddRange(IEnumerable items); + /// + /// Inserts multiple items at the specified index. + /// + /// The index. + /// The items. void InsertRange(int index, IEnumerable items); + /// + /// Removes multiple items from the collection. + /// + /// The items. void RemoveAll(IEnumerable items); } } \ No newline at end of file diff --git a/Perspex.Base/Collections/IPerspexReadOnlyList.cs b/Perspex.Base/Collections/IPerspexReadOnlyList.cs index 454467ce3c..cfbb18b16e 100644 --- a/Perspex.Base/Collections/IPerspexReadOnlyList.cs +++ b/Perspex.Base/Collections/IPerspexReadOnlyList.cs @@ -10,6 +10,10 @@ namespace Perspex.Collections using System.Collections.Specialized; using System.ComponentModel; + /// + /// A read-only notiftying list. + /// + /// The type of the items in the list. public interface IPerspexReadOnlyList : IReadOnlyList, INotifyCollectionChanged, INotifyPropertyChanged { } diff --git a/Perspex.Base/Platform/PlatformHandle.cs b/Perspex.Base/Platform/PlatformHandle.cs index b5d2c0daf6..4831dad514 100644 --- a/Perspex.Base/Platform/PlatformHandle.cs +++ b/Perspex.Base/Platform/PlatformHandle.cs @@ -8,16 +8,32 @@ namespace Perspex.Platform { using System; + /// + /// Represents a platform-specific handle. + /// public class PlatformHandle : IPlatformHandle { + /// + /// Initializes a new instance of the class. + /// + /// The handle. + /// + /// An optional string that describes what represents. + /// public PlatformHandle(IntPtr handle, string descriptor) { this.Handle = handle; this.HandleDescriptor = descriptor; } - public IntPtr Handle { get; private set; } + /// + /// Gets the handle. + /// + public IntPtr Handle { get; } - public string HandleDescriptor { get; private set; } + /// + /// Gets an optional string that describes what represents. + /// + public string HandleDescriptor { get; } } } diff --git a/Perspex.Base/Reactive/PerspexObservable.cs b/Perspex.Base/Reactive/PerspexObservable.cs index 1b11e18959..59376a79ac 100644 --- a/Perspex.Base/Reactive/PerspexObservable.cs +++ b/Perspex.Base/Reactive/PerspexObservable.cs @@ -10,10 +10,19 @@ namespace Perspex.Reactive using System.Reactive; using System.Reactive.Disposables; + /// + /// An with an additional description. + /// + /// The type of the elements in the sequence. public sealed class PerspexObservable : ObservableBase, IDescription { private readonly Func, IDisposable> subscribe; + /// + /// Initializes a new instance of the class. + /// + /// The subscribe function. + /// The description of the observable. public PerspexObservable(Func, IDisposable> subscribe, string description) { if (subscribe == null) @@ -25,8 +34,12 @@ namespace Perspex.Reactive this.Description = description; } + /// + /// Gets the description of the observable. + /// public string Description { get; } + /// protected override IDisposable SubscribeCore(IObserver observer) { return this.subscribe(observer) ?? Disposable.Empty;