/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/Test/Core/PDB/MetadataReferenceInfo.cs
53 строки
2 KB
Tomas Matousek
Move
23 окт 2020, 21:06
23 окт 2020, 21:06
d49cd2b
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Immutable; using Microsoft.CodeAnalysis; using Xunit; namespace Roslyn.Test.Utilities.PDB { internal readonly struct MetadataReferenceInfo { public readonly int Timestamp; public readonly int ImageSize; public readonly string Name; public readonly Guid Mvid; public readonly ImmutableArray<string> ExternAliases; public readonly MetadataImageKind Kind; public readonly bool EmbedInteropTypes; public MetadataReferenceInfo( int timestamp, int imageSize, string name, Guid mvid, ImmutableArray<string> externAliases, MetadataImageKind kind, bool embedInteropTypes) { Timestamp = timestamp; ImageSize = imageSize; Name = name; Mvid = mvid; ExternAliases = externAliases; Kind = kind; EmbedInteropTypes = embedInteropTypes; } internal void AssertEqual(MetadataReferenceInfo other) { Assert.Equal(Name, other.Name); Assert.Equal(Timestamp, other.Timestamp); Assert.Equal(ImageSize, other.ImageSize); Assert.Equal(Mvid, other.Mvid); Assert.Equal(ExternAliases, other.ExternAliases); Assert.Equal(Kind, other.Kind); Assert.Equal(EmbedInteropTypes, other.EmbedInteropTypes); } } }