33
33
34
34
using System ;
35
35
using System . Diagnostics ;
36
- using System . Diagnostics . CodeAnalysis ;
37
36
using NLog ;
38
37
using NLog . Config ;
39
38
40
39
namespace LoaderTestPublic
41
40
{
42
- public class NLogPackageLoader
41
+ public sealed class NLogPackageLoader
43
42
{
44
43
public static void Preload ( )
45
44
{
46
-
45
+ // Nothing to do
47
46
}
48
47
}
49
48
}
@@ -53,7 +52,7 @@ namespace LoaderTestInternal
53
52
/// <summary>
54
53
/// private
55
54
/// </summary>
56
- internal class NLogPackageLoader
55
+ internal sealed class NLogPackageLoader
57
56
{
58
57
public static void Preload ( )
59
58
{
@@ -66,8 +65,7 @@ namespace LoaderTestPrivateNested
66
65
{
67
66
internal class SomeType
68
67
{
69
- [ SuppressMessage ( "ReSharper" , "UnusedMember.Local" ) ]
70
- private class NLogPackageLoader
68
+ private sealed class NLogPackageLoader
71
69
{
72
70
public static void Preload ( ConfigurationItemFactory fact )
73
71
{
@@ -82,9 +80,8 @@ public static void Preload(ConfigurationItemFactory fact)
82
80
83
81
namespace LoaderTestPrivateNestedStatic
84
82
{
85
- internal class SomeType
83
+ internal sealed class SomeType
86
84
{
87
- [ SuppressMessage ( "ReSharper" , "UnusedMember.Local" ) ]
88
85
private static class NLogPackageLoader
89
86
{
90
87
public static void Preload ( )
@@ -97,7 +94,7 @@ public static void Preload()
97
94
98
95
namespace LoaderTestWrong1
99
96
{
100
- public class NLogPackageLoader
97
+ public sealed class NLogPackageLoader
101
98
{
102
99
[ DebuggerStepThrough ]
103
100
public static void Preload ( )
@@ -109,7 +106,7 @@ public static void Preload()
109
106
110
107
namespace LoaderTestWrong2
111
108
{
112
- public class NLogPackageLoader
109
+ public sealed class NLogPackageLoader
113
110
{
114
111
public void Preload ( )
115
112
{
@@ -120,7 +117,7 @@ public void Preload()
120
117
121
118
namespace LoaderTestWrong3
122
119
{
123
- public class NLogPackageLoader
120
+ public sealed class NLogPackageLoader
124
121
{
125
122
public static void Preload ( int arg1 , int arg2 )
126
123
{
0 commit comments