Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/coreclr/tools/Common/TypeSystem/Interop/IL/PInvokeDelegateWrapperConstructor.cs')
-rw-r--r--src/coreclr/tools/Common/TypeSystem/Interop/IL/PInvokeDelegateWrapperConstructor.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/coreclr/tools/Common/TypeSystem/Interop/IL/PInvokeDelegateWrapperConstructor.cs b/src/coreclr/tools/Common/TypeSystem/Interop/IL/PInvokeDelegateWrapperConstructor.cs
index 2e138f6098c..10727fac2b4 100644
--- a/src/coreclr/tools/Common/TypeSystem/Interop/IL/PInvokeDelegateWrapperConstructor.cs
+++ b/src/coreclr/tools/Common/TypeSystem/Interop/IL/PInvokeDelegateWrapperConstructor.cs
@@ -1,12 +1,8 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-using System;
-using System.Collections.Generic;
using Internal.IL;
using Internal.IL.Stubs;
-using Debug = System.Diagnostics.Debug;
-using System.Threading;
namespace Internal.TypeSystem.Interop
{
@@ -46,15 +42,12 @@ namespace Internal.TypeSystem.Interop
{
get
{
- if (_signature == null)
- {
- _signature = new MethodSignature(MethodSignatureFlags.None,
+ _signature ??= new MethodSignature(MethodSignatureFlags.None,
genericParameterCount: 0,
returnType: Context.GetWellKnownType(WellKnownType.Void),
parameters: new TypeDesc[] {
Context.GetWellKnownType(WellKnownType.IntPtr)
});
- }
return _signature;
}
}