We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

CalcQuick class is not serializable?

I create a CalcQuick object and create keys and finaly call the SetDirty method:

CalcQuick calcQuick = new CalcQuick();
calcQuick["A"] = "23";
calcQuick["B"] = "=[A]";
calcQuick["C"] = "=MAX([B],99)";
calcQuick["D"] = "=[C]";
calcQuick.SetDirty();
string result3 = calcQuick["D"].ToString();

So this works fine, but I need to serialize this object; however, I get the error: "Type 'Syncfusion.Calculate.CalcQuick' in Assembly 'Syncfusion.Calculate.Base, Version=4.402.0.51, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' is not marked as serializable."

Is there no way I can serialize a CalcQuick object?

1 Reply

AD Administrator Syncfusion Team February 3, 2007 03:09 AM UTC

CalcQuick is not directly serializable.

But you could derive the class and serialize the strings that are cached by the object. Here is a sample that does this using serialization to an XML file to do this.

http://www.syncfusion.com/Support/user/uploads/SerializeSample_7e080feb.zip

Loader.
Live Chat Icon For mobile
Up arrow icon