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
  • 837,282
  • 173
  • 1,862
  • 1,933
virendrao
  • 1,660
  • 2
  • 21
  • 39

1 Answers1

1

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

Andre
  • 607
  • 4
  • 15