views:

113

answers:

1
+2  Q: 

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?

+6  A: 

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

Franci Penov
I see.Thanks Franci.
Manuel V