Manuel V
Manuel V

Reputation: 55

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?

Upvotes: 2

Views: 170

Answers (1)

Franci Penov
Franci Penov

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

Related Questions