ActionControllers.DefaultNamingConventions.BuildControllerFromType C# (CSharp) Méthode

BuildControllerFromType() public méthode

public BuildControllerFromType ( Type type ) : string
type System.Type
Résultat string
        public string BuildControllerFromType(Type type)
        {
            int indexOfControllers = type.Namespace.LastIndexOf("Controllers.");
            var key = type.Namespace.Substring(indexOfControllers + 12);
            return key;
        }