Arnolyzer.Analyzers.AnalyzerDetails.DeriveNiceNameFromClassName C# (CSharp) 메소드

DeriveNiceNameFromClassName() 개인적인 정적인 메소드

private static DeriveNiceNameFromClassName ( string className ) : string
className string
리턴 string
        private static string DeriveNiceNameFromClassName(string className)
        {
            var nameWithoutCode = className.Substring(6);
            var nameWithSpaces = Regex.Replace(nameWithoutCode, @"([^_])([A-Z])", "$1 $2");
            return nameWithSpaces.Replace("_", "-");
        }