Registering Generic Classes
NCache also supports generic classes to be compact serialized. Generic classes are configured in the same way as other
classes. In addition we also need to specify <T> types for each Generic class. Generic classes can be configured as folows:
Using NCache Manager
-
Click on the cache name in Cache Explorer to open cache settings
-
Go to the Compact Serialization tab.
-
Click on the Add Type button. Select Compact Classes dialog appears.
-
Now you need to specify the classes which you expect to be assigned to the selected generic classes. When you select any of the added generic class, the Add<T> button becomes enabled. Click Add<T>.
-
Select Compact Cllasses dialog appears. Click Browse to select assembly. All classes will be loaded in Loaded Classes list box. Select your class and click Add Class.
See Also