NotSupportedException with List<T> Deserialization

  • Thread starter Thread starter Allen Bradley
  • Start date Start date
A

Allen Bradley

My Device Application Throw the following Exception:

NotSupportedException

during InizializeComponent() into a Form:

this.MyControl.MyProperties =
((List<MyType>)resources.GetObject("MyControl.MyProperties"))

Deserialization of a List<T> from Resource is not Supported?
Why VS Serialize a List<T> type into Resource and not into
InizializeComponent()?

Sorry for my bad enghlish.. :)

Best Regards
 
Allen said:
My Device Application Throw the following Exception:

NotSupportedException

during InizializeComponent() into a Form:

this.MyControl.MyProperties =
((List<MyType>)resources.GetObject("MyControl.MyProperties"))

Deserialization of a List<T> from Resource is not Supported?
Why VS Serialize a List<T> type into Resource and not into
InizializeComponent()?

Sorry for my bad enghlish.. :)

Best Regards

PS
I'm using Compact Framework 2.0 SP2
 
Back
Top