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/Ecma/EcmaType.MethodImpls.cs')
-rw-r--r--src/coreclr/tools/Common/TypeSystem/Ecma/EcmaType.MethodImpls.cs13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/coreclr/tools/Common/TypeSystem/Ecma/EcmaType.MethodImpls.cs b/src/coreclr/tools/Common/TypeSystem/Ecma/EcmaType.MethodImpls.cs
index e9f16ef1ca3..e7e7ccb14b9 100644
--- a/src/coreclr/tools/Common/TypeSystem/Ecma/EcmaType.MethodImpls.cs
+++ b/src/coreclr/tools/Common/TypeSystem/Ecma/EcmaType.MethodImpls.cs
@@ -1,15 +1,10 @@
// 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 System.Reflection;
using System.Reflection.Metadata;
-using System.Threading;
using Debug = System.Diagnostics.Debug;
-using Internal.TypeSystem;
-
namespace Internal.TypeSystem.Ecma
{
// This file has implementations of the .MethodImpl.cs logic from its base type.
@@ -21,7 +16,7 @@ namespace Internal.TypeSystem.Ecma
{
MetadataReader metadataReader = _module.MetadataReader;
var stringComparer = metadataReader.StringComparer;
- ArrayBuilder<MethodImplRecord> foundRecords = new ArrayBuilder<MethodImplRecord>();
+ ArrayBuilder<MethodImplRecord> foundRecords = default(ArrayBuilder<MethodImplRecord>);
foreach (var methodImplHandle in _typeDefinition.GetMethodImplementations())
{
@@ -79,7 +74,7 @@ namespace Internal.TypeSystem.Ecma
protected override MethodImplRecord[] ComputeVirtualMethodImplsForType()
{
- ArrayBuilder<MethodImplRecord> records = new ArrayBuilder<MethodImplRecord>();
+ ArrayBuilder<MethodImplRecord> records = default(ArrayBuilder<MethodImplRecord>);
MetadataReader metadataReader = _module.MetadataReader;
@@ -90,8 +85,8 @@ namespace Internal.TypeSystem.Ecma
EntityHandle methodDeclCheckHandle = methodImpl.MethodDeclaration;
HandleKind methodDeclHandleKind = methodDeclCheckHandle.Kind;
- // We want to check that the type is not an interface matches before actually getting the MethodDesc.
- // For MethodSpecifications we need to dereference that handle to the underlying member reference to
+ // We want to check that the type is not an interface matches before actually getting the MethodDesc.
+ // For MethodSpecifications we need to dereference that handle to the underlying member reference to
// look at the owning type.
if (methodDeclHandleKind == HandleKind.MethodSpecification)
{