If you have a question, please send it to us.
1) Can you describe the concept of Generics ?
Generics provide type-safety to your class at compile-time
Generics makes it possible to reuse your code classes with different data types.
2) What does the following syntax mean ?
Method_Name<T> (System.Generics.List<T> mylist)
This is an example of a Generic Method Definition.
The "T" is a type parameter that is used as a placeholder for any type.
This data type can be specified when the method is called.
© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext