Last post Dec 02, 2005 04:12 PM by tweetybird
Dec 02, 2005 10:05 AM|tweetybird|LINK
Greetings to all.
I was reading the code of SQLDataAccessLayer.cs and noticed that all the list generating methods(at the bottom of the file) used generics while all these generics parameters were not referenced in the methods.
Since I am new to ASP.NET and would like to use the starter kit as a best practice template, I would like to know what the purpose and advantages are by using the generics type.
Dec 02, 2005 01:20 PM|eramseur|LINK
Generics add type safety and the C++ template idea of loading an object type at runtime with no overhead. However, .NET generics go well beyond the old C++ style templates.
Dec 02, 2005 03:30 PM|tweetybird|LINK
Thank you, Eric for your links to a great resource!
Specifically, I am not quite sure if I understand the following code in SQLDataAccessLayer.cs:
What would be the purpose of using a generics method here if T is not used?
Dec 02, 2005 04:12 PM|tweetybird|LINK
Eric, Thank you very much for your links to a pool of resources.
Specifically, I would like to know the following part of the code in SQLDataAccessLayer.cs:
What is the purpose of using a generics type of method here without referencing T in the code?