Post

An old bug fixed now after searching for so long

This post is about a bug in CBC 2, which is fixed now.

(CSDN June 07, 2006)

I have been using serialization now and then. Lately when I make some public classes with [Serializable] to internal classes, annoying exception shows when I use a XmlSerializer. The constructor of it which takes a Type parameter fails.

I find nothing in the MSDN and .NET SDK Docs but I know the only reason is my modifications. Maybe the serializer needs to know much about the Type so it can only be a public class. But why MS fails to make this point clearer.

This bug dates back to very old versions of CBC2. I am sorry you cannot save you preferences and an exception is popped. The only thing I feel lucky is that even without preferences files, CBC 2 can still run and do some staff for you.

You can either modify the source (change some internal Preferences classes to public), or wait for N3 RC 1.

© Lex Li. All rights reserved. The code included is licensed under CC BY 4.0 unless otherwise noted.
Advertisement

© - Lex Li. All rights reserved.

Using the Chirpy theme for Jekyll.

Last updated on November 06, 2024