/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Shared/StackTrace/StackFrame/StackFrameSourceCodeInfo.cs
55 строк
2 KB
Brennan
Add rule to seal internal and private types (#41457)
05 май 2022, 19:26
Не верифицирован
05 май 2022, 19:26
3ea008c
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; #nullable enable namespace Microsoft.Extensions.StackTrace.Sources; /// <summary> /// Contains the source code where the exception occurred. /// </summary> internal sealed class StackFrameSourceCodeInfo { /// <summary> /// Function containing instruction /// </summary> public string? Function { get; set; } /// <summary> /// File containing the instruction /// </summary> public string? File { get; set; } /// <summary> /// The line number of the instruction /// </summary> public int Line { get; set; } /// <summary> /// The line preceding the frame line /// </summary> public int PreContextLine { get; set; } /// <summary> /// Lines of code before the actual error line(s). /// </summary> public IEnumerable<string> PreContextCode { get; set; } = Enumerable.Empty<string>(); /// <summary> /// Line(s) of code responsible for the error. /// </summary> public IEnumerable<string> ContextCode { get; set; } = Enumerable.Empty<string>(); /// <summary> /// Lines of code after the actual error line(s). /// </summary> public IEnumerable<string> PostContextCode { get; set; } = Enumerable.Empty<string>(); /// <summary> /// Specific error details for this stack frame. /// </summary> public string? ErrorDetails { get; set; } }