Skip to content

Commit

Permalink
Seal classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point committed May 8, 2024
1 parent be71f9b commit dacb90c
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion source/RevitLookup/Core/Diagnosers/ClockDiagnoser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace RevitLookup.Core.Diagnosers;

public class ClockDiagnoser
public sealed class ClockDiagnoser
{
private readonly Stopwatch _clock = new();

Expand Down
2 changes: 1 addition & 1 deletion source/RevitLookup/Core/Diagnosers/MemoryDiagnoser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace RevitLookup.Core.Diagnosers;

public class MemoryDiagnoser
public sealed class MemoryDiagnoser
{
private long _initialAllocatedBytes;
private long _finalAllocatedBytes;
Expand Down
1 change: 0 additions & 1 deletion source/RevitLookup/Core/Engine/DescriptorBuilder.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
// (Rights in Technical Data and Computer Software), as applicable.

using System.Reflection;
using System.Runtime;
using RevitLookup.Core.Objects;
using RevitLookup.Core.Utils;

Expand Down
2 changes: 1 addition & 1 deletion source/RevitLookup/Models/ModuleInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace RevitLookup.Models;

public class ModuleInfo
public sealed class ModuleInfo
{
public required string Name { get; set; }
public required string Path { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion source/RevitLookup/Models/Options/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace RevitLookup.Models.Options;

public class AssemblyInfo
public sealed class AssemblyInfo
{
public string Framework { get; set; }
public Version AddinVersion { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion source/RevitLookup/Models/Options/FolderLocations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace RevitLookup.Models.Options;

public class FolderLocations
public sealed class FolderLocations
{
public string RootFolder { get; set; }
public string ConfigFolder { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace RevitLookup.ViewModels.Dialogs;

public partial class EditParameterViewModel : ObservableObject
public sealed partial class EditParameterViewModel : ObservableObject
{
private readonly Parameter _parameter;

Expand Down
2 changes: 1 addition & 1 deletion source/RevitLookup/ViewModels/Dialogs/ModulesViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace RevitLookup.ViewModels.Dialogs;

public partial class ModulesViewModel : ObservableObject
public sealed partial class ModulesViewModel : ObservableObject
{
[ObservableProperty] private string _searchText = string.Empty;
[ObservableProperty] private List<ModuleInfo> _filteredModules;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// ReSharper disable once CheckNamespace
namespace RevitLookup.Views.Controls;

public partial class ContentPlaceholder
public sealed partial class ContentPlaceholder
{
public static readonly DependencyProperty TextProperty =
DependencyProperty.Register(nameof(Text), typeof(string), typeof(ContentPlaceholder), new PropertyMetadata(default(string)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// ReSharper disable once CheckNamespace
namespace RevitLookup.Views.Controls;

public partial class DataGridGroupStyle
public sealed partial class DataGridGroupStyle
{
public DataGridGroupStyle()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

namespace RevitLookup.Views.Converters;

public class ObjectColorConverter : MarkupExtension, IValueConverter
public sealed class ObjectColorConverter : MarkupExtension, IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

namespace RevitLookup.Views.Dialogs;

public partial class EditParameterDialog
public sealed partial class EditParameterDialog
{
private readonly IServiceProvider _serviceProvider;
private readonly EditParameterViewModel _viewModel;
Expand Down
2 changes: 1 addition & 1 deletion source/RevitLookup/Views/Dialogs/ModulesDialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace RevitLookup.Views.Dialogs;

public partial class ModulesDialog
public sealed partial class ModulesDialog
{
private readonly IServiceProvider _serviceProvider;

Expand Down
2 changes: 1 addition & 1 deletion source/RevitLookup/Views/Markup/MenusDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace RevitLookup.Views.Markup;
[Localizability(LocalizationCategory.Ignore)]
[Ambient]
[UsableDuringInitialization(true)]
public class MenusDictionary : ResourceDictionary
public sealed class MenusDictionary : ResourceDictionary
{
private const string DictionaryUri = "pack://application:,,,/RevitLookup;component/Views/Resources/Menus.xaml";

Expand Down
2 changes: 1 addition & 1 deletion source/RevitLookup/Views/Markup/StylesDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace RevitLookup.Views.Markup;
[Localizability(LocalizationCategory.Ignore)]
[Ambient]
[UsableDuringInitialization(true)]
public class StylesDictionary : ResourceDictionary
public sealed class StylesDictionary : ResourceDictionary
{
private const string DictionaryUri = "pack://application:,,,/RevitLookup;component/Views/Resources/RevitLookup.Ui.xaml";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private void SelectDataGridRowStyle(DataGridRow row)
}
}

public class DataGridCellStyleSelector : DataTemplateSelector
public sealed class DataGridCellStyleSelector : DataTemplateSelector
{
/// <summary>
/// Data grid cell style selector
Expand All @@ -70,7 +70,7 @@ public override DataTemplate SelectTemplate(object item, DependencyObject contai
}
}

public class TreeViewItemTemplateSelector : DataTemplateSelector
public sealed class TreeViewItemTemplateSelector : DataTemplateSelector
{
/// <summary>
/// Tree view row style selector
Expand Down

0 comments on commit dacb90c

Please sign in to comment.