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.
Unfortunately, activation email could not send to your email. Please try again.

CalcQuick class is not serializable?

Thread ID:





55659 Feb 2,2007 04:52 AM Feb 2,2007 10:09 PM Windows Forms 1
Tags: Calculate
Asked On February 2, 2007 04:52 AM

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]";
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?

Administrator [Syncfusion]
Replied On February 2, 2007 10:09 PM

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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.