Hi,
CultureInfo might be not serializable. If you use standard cultures only,
you can just serialize the culture name.
--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx
"choyk1" <ch****@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
Hi all,
I cannot serialize CultureInfo property as below.
It invokes InvalidOperationException.
[Serializable]
public class One
{
private CultureInfo culture;
[XmlAttribute("Culture")]
public CultureInfo Culture {get {return culture;}}
public One() {}
public One(CultureInfo culture)
{
this.culture = culture;
}
}