A controller is an instantiable public class (#24007)

pull/24013/head
Christopher Yeleighton 2021-11-20 17:56:46 +01:00 committed by GitHub
parent 2b013f79b0
commit 7b7704b1be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ By convention, controller classes:
* Reside in the project's root-level *Controllers* folder.
* Inherit from `Microsoft.AspNetCore.Mvc.Controller`.
A controller is an instantiable class in which at least one of the following conditions is true:
A controller is an instantiable class, usually [public](/dotnet/csharp/language-reference/keywords/public), in which at least one of the following conditions is true:
* The class name is suffixed with `Controller`.
* The class inherits from a class whose name is suffixed with `Controller`.