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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CalcQuick class is not serializable?

Thread ID:





55659 Feb 2,2007 09:52 AM UTC Feb 3,2007 03:09 AM UTC WinForms 1
Tags: Calculate
Asked On February 2, 2007 09:52 AM UTC

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 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.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon