Unable to select type from System.Numerics for Property.Setting
-
Wednesday, July 11, 2012 7:45 PMIf I open the property settings editor, open the "type" dropbox for one of the entries and select "browse" I get a "Select a type" dialog with a list of libraries. I can expand any of the libraries except for System.Data.DataSetExtensions and System.Numerics (the one I want) -- if I click the arrow, it goes away and nothing else happens. I want a setting with type System.Numerics.Complex -- how can I get it?
All Replies
-
Thursday, July 12, 2012 7:57 AM
HI,
GO to the object browser, from there you can check all the libraries including System.Data.DataSetExtensions and System.Numerics, you can also check the namespaces and methods in these libraries and you can do what ever you want from these methods.
Thanks
-
Thursday, July 12, 2012 4:19 PMModerator
Not every type can be used as a setting. Settings must be serializable in order to be stored in the config file. The designer shows you all assemblies referenced in the project. When you click on the arrow (if it appears) then it enumerates the instantitable types looking for those that can be serialized to XML.
System.Data.DataSetExtensions contains mostly static classes so nothing in it can be serialized. Numerics contains only 1 type that could be remotedly serialized but it isn't marked as serializable so it can't be used as a setting. Complex itself cannot be serialized because it doesn't support it nor does it have any support for conversion to or from a string.
Michael Taylor - 7/12/2012
http://msmvps.com/blogs/p3net
- Marked As Answer by digitig Thursday, July 12, 2012 4:22 PM

