Reputation: 55
I Just started to evaluate The MS Enterprise Library. They use the following instruct to get instances:
var customerDb =
EnterpriseLibraryContainer.Current.GetInstance<Database>("Customers");
I know GetInstance is the method, but What kind of construct (or struct) <Database>
is?
is it some kind of generic?
Upvotes: 2
Views: 170
Reputation: 76001
Yes, GetInstance<Database>
is a call to a generic method, where Database
is the type of the generic parameter for the particular call.
Upvotes: 6