1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-10-16 06:00:45 +00:00
msfs-popout-panel-manager/Shared/QualifyFullName.cs

15 lines
438 B
C#
Raw Permalink Normal View History

2024-02-29 06:11:56 +00:00
namespace MSFSPopoutPanelManager.Shared
{
public static class QualifyFullName
{
public static string Of(string _, [System.Runtime.CompilerServices.CallerArgumentExpression("_")] string fullTypeName = "")
{
if (fullTypeName.StartsWith("nameof(") && fullTypeName.EndsWith(")"))
{
return fullTypeName[7..^1];
}
return fullTypeName;
}
}
}