ActionControllers.DefaultNamingConventions.BuildControllerFromType C# (CSharp) Метод

BuildControllerFromType() публичный Метод

public BuildControllerFromType ( Type type ) : string
type System.Type
Результат string
        public string BuildControllerFromType(Type type)
        {
            int indexOfControllers = type.Namespace.LastIndexOf("Controllers.");
            var key = type.Namespace.Substring(indexOfControllers + 12);
            return key;
        }