mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-24 06:40:09 +00:00
15 lines
438 B
C#
15 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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|