From e8c9e682ed566cf0dc6c58e0645fc6eea95440e7 Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Thu, 11 Jul 2019 09:46:22 +0300 Subject: [PATCH] Marked class as sealed --- SystemExtensions/Collections/AVLTree.cs | 2 +- SystemExtensions/Collections/BinaryHeap.cs | 2 +- SystemExtensions/Collections/FibonacciHeap.cs | 4 ++-- SystemExtensions/Collections/PriorityQueue.cs | 2 +- SystemExtensions/Collections/SkipList.cs | 2 +- SystemExtensions/Collections/Treap.cs | 2 +- SystemExtensions/Threading/PriorityThreadPool.cs | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/SystemExtensions/Collections/AVLTree.cs b/SystemExtensions/Collections/AVLTree.cs index 638095c..dd1dff6 100644 --- a/SystemExtensions/Collections/AVLTree.cs +++ b/SystemExtensions/Collections/AVLTree.cs @@ -14,7 +14,7 @@ namespace SystemExtensions.Collections /// /// Provided type. [Serializable] - public class AVLTree : ICollection where T : IComparable + public sealed class AVLTree : ICollection where T : IComparable { #region Fields [Serializable] diff --git a/SystemExtensions/Collections/BinaryHeap.cs b/SystemExtensions/Collections/BinaryHeap.cs index 398588e..5315ba8 100644 --- a/SystemExtensions/Collections/BinaryHeap.cs +++ b/SystemExtensions/Collections/BinaryHeap.cs @@ -12,7 +12,7 @@ namespace SystemExtensions.Collections /// /// Provided type. [Serializable] - public class BinaryHeap : IEnumerable where T : IComparable + public sealed class BinaryHeap : IEnumerable where T : IComparable { #region Fields T[] items; diff --git a/SystemExtensions/Collections/FibonacciHeap.cs b/SystemExtensions/Collections/FibonacciHeap.cs index d364727..6272838 100644 --- a/SystemExtensions/Collections/FibonacciHeap.cs +++ b/SystemExtensions/Collections/FibonacciHeap.cs @@ -12,7 +12,7 @@ namespace SystemExtensions.Collections /// /// Provided type [Serializable] - public class FibonacciHeap : IEnumerable where T : IComparable + public sealed class FibonacciHeap : IEnumerable where T : IComparable { #region Fields private FibonacciNode root; @@ -462,7 +462,7 @@ namespace SystemExtensions.Collections #endregion } [Serializable] - internal class FibonacciNode + internal sealed class FibonacciNode { #region Fields private FibonacciNode previous; diff --git a/SystemExtensions/Collections/PriorityQueue.cs b/SystemExtensions/Collections/PriorityQueue.cs index d4f6b21..3d94c48 100644 --- a/SystemExtensions/Collections/PriorityQueue.cs +++ b/SystemExtensions/Collections/PriorityQueue.cs @@ -13,7 +13,7 @@ namespace SystemExtensions.Collections /// /// Provided type. [Serializable] - public class PriorityQueue : IQueue where T : IComparable + public sealed class PriorityQueue : IQueue where T : IComparable { #region Fields private BinaryHeap binaryHeap; diff --git a/SystemExtensions/Collections/SkipList.cs b/SystemExtensions/Collections/SkipList.cs index 66963cd..6ee1e23 100644 --- a/SystemExtensions/Collections/SkipList.cs +++ b/SystemExtensions/Collections/SkipList.cs @@ -12,7 +12,7 @@ namespace SystemExtensions.Collections /// /// Provided type. [Serializable] - public class SkipList : ICollection where T : IComparable + public sealed class SkipList : ICollection where T : IComparable { #region Fields [Serializable] diff --git a/SystemExtensions/Collections/Treap.cs b/SystemExtensions/Collections/Treap.cs index 3615634..72c7a60 100644 --- a/SystemExtensions/Collections/Treap.cs +++ b/SystemExtensions/Collections/Treap.cs @@ -12,7 +12,7 @@ namespace SystemExtensions.Collections /// /// Provided type. [Serializable] - public class Treap : ICollection where T : IComparable + public sealed class Treap : ICollection where T : IComparable { #region Fields [Serializable] diff --git a/SystemExtensions/Threading/PriorityThreadPool.cs b/SystemExtensions/Threading/PriorityThreadPool.cs index dd9febc..4f98085 100644 --- a/SystemExtensions/Threading/PriorityThreadPool.cs +++ b/SystemExtensions/Threading/PriorityThreadPool.cs @@ -13,7 +13,7 @@ namespace SystemExtensions.Threading /// Features both an automated algorithm to calibrate the number of active threads and a Constructor for constructing /// a threadpool manually, without the auto-managed pool algorithm. /// - public class PriorityThreadPool : IDisposable + public sealed class PriorityThreadPool : IDisposable { private class QueueEntry : IComparable {