Recap In an earlier post Microsoft Dotnet Interview Questions 2012, question no. 10 was about benefits of generics. In this post I would answer that. Main benefits of Generics
Generics typically provides a lot of performance and code safety benefits which are listed below:Generics enforce Type Safety: Type safety means that only object compatible with specified types will be used in the generic algorithm. This helps to write a code which is less prone to errors. When generics are used, compiler kn...
No comments yet, be the first one to post comment.