Search code examples
c#enterprise-library

c# Construct <xxx>


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?


Solution

  • Yes, GetInstance<Database> is a call to a generic method, where Database is the type of the generic parameter for the particular call.