I am facing an error. I created a Table


   Public sessionTable As XTable(Of String, Object) = Nothing
    sessionTable = sessionDB.Scheme.CreateOrOpenXTable(Of String, Object)(New Locator("EntryHashTable"))
Type 'LibertyPIMLib.GenericCategoriesStructure' in Assembly 'LibertyPIMLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0653eac2cb2bb1b9' is not marked as serializable.

I inserted some objects of GenericCategoriesStructure Class. Now I am getting runtime exceptions that the Class is not serializable. I wrote the <Serializable()> _ above the class, but then I received more errors like unable to create table based on this class.

Is there a way that I am able to insert the Class object into the XTable<Of String, Object> without writing Serializable attribute? I only want is that no exception comes and that I could be able to store and restore back the objects.