1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-10-16 14:10:45 +00:00
msfs-popout-panel-manager/Shared/QualifyFullName.cs
2024-02-29 01:11:56 -05:00

14 lines
438 B
C#

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;
}
}
}