I'm having WF application and trying to serialize/deserialize its data based on different cases (like in CurrentCulture and InvariantCulture).
I'm facing problem when change the CurrentCulture.TextInfo.ListSeparator before serialization / deserialization.
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US", false); Thread.CurrentThread.CurrentUICulture.TextInfo.ListSeparator = ";";
To resolve the problems, i need to find whether ListSeparator has modified or not. I could not find any method for this.
Please suggest me your ideas.
Thanks.
used below code to identify whether ListSeparator is modified or not. if(CultureInfo.CurrentCulture.TextInfo.ListSeparator != CultureInfo.GetCultureInfo(CultureInfo.CurrentCulture.Name).TextInfo.ListSeparator){}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.