mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-25 07:10:10 +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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|