What does this sort of method signature mean
public partial class Entities : Entity.ObjectContext<Entities>
I know anything after the colon (:) is inherits from, but what does the
<Entities>
mean?
Is it some sort of generic?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s not a method signature, but a (partial) class declaration.
“partial” signals that the rest of the class may be defined in one or more separate files. Partial classes are particularly useful when doing code generation (they are used for example by the WinForms designer to separate generated code from user code). The specific example you show is from Entity Framework.
The
<Entities>part means that this is a Generic function.