What do you want to save?
Add Code snippet
New code examples
-
Java 2022-01-26 01:25:16
why cant we have primitive types in generixs
//In java generics are implemented by using "Type erasure" for backward compatibility. All generic types are converted to Object at runtime. for example, public class Container<T> { private T data; public T getData() { r... Add solution -
C# 2021-09-25 11:23:06
how to make a cast in c#
//If you want to make your own cast for your struct or class you //can overload an operator. Note that you can't make a cast //if your your target class is in inheritence with yours. // This is if you want to manually type out (MyType)b. This is recomme... Add solution