Make the class serializable

I am looking for how to make this class serializable for a service (SOAP)

<Serializable()> _ Public Class Items Inherits StringEnumBase(Of Items) Public Sub New(ByVal StrValue As String) MyBase.New(StrValue) End Sub <Description("item 1")> Public Shared ReadOnly ITEM1 As New Items("ValueOfItem1") <Description("item 2")> Public Shared ReadOnly ITEM2 As New Items("ValueOfItem2") <Description("item 3")> Public Shared ReadOnly ITEM3 As New Items("ValueOfItem3") End Class 
+7
source share
1 answer

This is normal for an attribute, but it should have an open constructor with no parameters.

+8
source

All Articles