/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/Core/Def/CallHierarchy/FieldInitializerItem.cs
31 строка
993 B
Deepak Singh Rathore
Fix Call Hierarchy cross-thread exception when displaying field initializers (#82127)
28 апр 2026, 20:25
Не верифицирован
28 апр 2026, 20:25
4dfff2e
Код
Авторство
О чём код?
// 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. using System; using System.Collections.Generic; using System.Windows.Media; using Microsoft.VisualStudio.Language.CallHierarchy; namespace Microsoft.CodeAnalysis.Editor.Implementation.CallHierarchy; internal sealed class FieldInitializerItem : ICallHierarchyNameItem { private readonly Func<ImageSource> _glyphCreator; public FieldInitializerItem(string name, string sortText, Func<ImageSource> glyphCreator, IEnumerable<CallHierarchyDetail> details) { Name = name; SortText = sortText; _glyphCreator = glyphCreator; Details = details; } public IEnumerable<ICallHierarchyItemDetails> Details { get; } public ImageSource DisplayGlyph => _glyphCreator(); public string Name { get; } public string SortText { get; } }