0

I have requirement where i want to store Hash Set i have to byte[] in database. I have searched through internet haven't found a solution.

I have following hashset of custom class.

HashSet<MyClass> set = new HashSet<MyClass>();

Please help.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
virendrao
  • 1,763
  • 2
  • 22
  • 42

1 Answers1

1

You can serialize it, if the stored data is serializable. Then convert to bytes.

Andre
  • 637
  • 6
  • 16