From 6f3f2972c2c7b34363fe5f5116442de8e03b8534 Mon Sep 17 00:00:00 2001 From: Anthony J Date: Fri, 21 Aug 2020 23:53:50 -0400 Subject: [PATCH] Fix some formatting and comments. --- src/Prism.Core/Events/SubscriptionToken.cs | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/Prism.Core/Events/SubscriptionToken.cs b/src/Prism.Core/Events/SubscriptionToken.cs index 8285c9a1f5..b626ba110b 100644 --- a/src/Prism.Core/Events/SubscriptionToken.cs +++ b/src/Prism.Core/Events/SubscriptionToken.cs @@ -1,6 +1,3 @@ - - - using System; namespace Prism.Events @@ -50,13 +47,13 @@ public override bool Equals(object obj) return Equals(obj as SubscriptionToken); } - /// - ///Serves as a hash function for a particular type. - /// - /// - ///A hash code for the current . - /// - ///2 + /// + /// Serves as a hash function for a particular type. + /// + /// + /// A hash code for the current . + /// + /// 2 public override int GetHashCode() { return _token.GetHashCode(); @@ -68,7 +65,7 @@ public override int GetHashCode() [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly", Justification = "Should never have need for a finalizer, hence no need for Dispose(bool).")] public virtual void Dispose() { - // While the SubsctiptionToken class implements IDisposable, in the case of weak subscriptions + // While the SubscriptionToken class implements IDisposable, in the case of weak subscriptions // (i.e. keepSubscriberReferenceAlive set to false in the Subscribe method) it's not necessary to unsubscribe, // as no resources should be kept alive by the event subscription. // In such cases, if a warning is issued, it could be suppressed. @@ -82,4 +79,4 @@ public virtual void Dispose() GC.SuppressFinalize(this); } } -} \ No newline at end of file +}