This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree 4 files changed +8
-8
lines changed
src/System.Private.CoreLib/shared/System
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
4
4
5
- #pragma warning disable CS0067 // events are declared but not used
5
+ #pragma warning disable CS0414 // events are assigned but not used
6
6
7
7
using System . Diagnostics ;
8
8
using System . IO ;
@@ -67,7 +67,7 @@ public string FriendlyName
67
67
68
68
public bool IsHomogenous => true ;
69
69
70
- public event EventHandler DomainUnload ;
70
+ public event EventHandler DomainUnload = null ! ;
71
71
72
72
public event EventHandler < FirstChanceExceptionEventArgs > FirstChanceException
73
73
{
@@ -244,7 +244,7 @@ public event ResolveEventHandler AssemblyResolve
244
244
remove { AssemblyLoadContext . AssemblyResolve -= value ; }
245
245
}
246
246
247
- public event ResolveEventHandler ReflectionOnlyAssemblyResolve ;
247
+ public event ResolveEventHandler ReflectionOnlyAssemblyResolve = null ! ;
248
248
249
249
public event ResolveEventHandler TypeResolve
250
250
{
Original file line number Diff line number Diff line change @@ -4060,7 +4060,7 @@ public event EventHandler<EventSourceCreatedEventArgs> EventSourceCreated
4060
4060
/// This event is raised whenever an event has been written by a EventSource for which
4061
4061
/// the EventListener has enabled events.
4062
4062
/// </summary>
4063
- public event EventHandler< EventWrittenEventArgs> EventWritten;
4063
+ public event EventHandler< EventWrittenEventArgs> EventWritten = null ! ;
4064
4064
4065
4065
static EventListener( )
4066
4066
{
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public Progress(Action<T> handler) : this()
56
56
/// Handlers registered with this event will be invoked on the
57
57
/// <see cref="System.Threading.SynchronizationContext"/> captured when the instance was constructed.
58
58
/// </remarks>
59
- public event EventHandler < T > ProgressChanged ;
59
+ public event EventHandler < T > ProgressChanged = null ! ;
60
60
61
61
/// <summary>Reports a progress change.</summary>
62
62
/// <param name="value">The value of the updated progress.</param>
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ private enum InternalState
38
38
// synchronization primitive to protect against usage of this instance while unloading
39
39
private readonly object _unloadLock ;
40
40
41
- private event Func < Assembly , string , IntPtr > _resolvingUnmanagedDll ;
41
+ private event Func < Assembly , string , IntPtr > _resolvingUnmanagedDll = null ! ;
42
42
43
- private event Func < AssemblyLoadContext , AssemblyName , Assembly > _resolving ;
43
+ private event Func < AssemblyLoadContext , AssemblyName , Assembly > _resolving = null ! ;
44
44
45
- private event Action < AssemblyLoadContext > _unloading ;
45
+ private event Action < AssemblyLoadContext > _unloading = null ! ;
46
46
47
47
private readonly string ? _name ;
48
48
You can’t perform that action at this time.
0 commit comments