We have several classes that we want to be able to save in the view state (ASP.net using Azure Redis Cache).
It seems that although the parent class ComplexType is marked as serializable the child class does not.
Whenever we want to load the serialized class from the cache we get an error message saying that this class was not marked as serializable.
Is it possible to mark certain classes as serializable when converting the rodl file??
Example
[RemObjects.SDK.Remotable(ActivatorClass=typeof(THDSSrvVariant_Activator))]
[System.Reflection.ObfuscationAttribute(Exclude=true)]
public partial class THDSSrvVariant : RemObjects.SDK.Types.ComplexType {
private string @__Data;
private int @__VariantType;
[RemObjects.SDK.StreamAs(RemObjects.SDK.StreamingFormat.WideString)]
public virtual string Data {
get {
return @__Data;
}
set {
@__Data = value;
this.TriggerPropertyChanged(“Data”);
}
}
…
We would like it to be
[RemObjects.SDK.Remotable(ActivatorClass=typeof(THDSSrvVariant_Activator))]
[System.Reflection.ObfuscationAttribute(Exclude=true)]
[Serializable]
public partial class THDSSrvVariant : RemObjects.SDK.Types.ComplexType {
private string @__Data;
private int @__VariantType;
[RemObjects.SDK.StreamAs(RemObjects.SDK.StreamingFormat.WideString)]
public virtual string Data {
get {
return @__Data;
}
set {
@__Data = value;
this.TriggerPropertyChanged(“Data”);
}
}
…