[MonoDevelop] Exception on SortedList as property
RupeshT
rupeshtarwade at rediffmail.com
Tue Dec 30 02:22:58 EST 2008
Hi,
I am trying to make a user-control which has SortedList<int, string> as a
property. But when I use the user control on a form, On calling
InitializeComponent() method, I get following error.
Unhandled Exception: System.TypeLoadException: Could not load type
'System.Collections.Generic.SortedList`2+KeyList[[System.Int32, mscorlib,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.
at (wrapper managed-to-native) System.Reflection.Assembly:InternalGetType
(System.Reflection.Module,string,bool,bool)
at System.Reflection.Assembly.GetType (System.String name, Boolean
throwOnError, Boolean ignoreCase) [0x00000]
at System.Reflection.Assembly.GetType (System.String name, Boolean
throwOnError) [0x00000]
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetDeserializationType
(Int64 assemblyId, System.String className) [0x00000]
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadType
(System.IO.BinaryReader reader, TypeTag code) [0x00000]
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadTypeMetadata
(System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean
hasTypeInfo) [0x00000]
The initialization code is as below.
this.TCMono.JobText = ((System.Collections.Generic.SortedList<int,
string>)(resources.GetObject("TCMono.JobText")));
JobText is the property which is sorted list, and TCMono is the Name of the
User control.
Any help is appreciated.
Thanks you.
Regards,
Rupesh.
--
View this message in context: http://www.nabble.com/Exception-on-SortedList-as-property-tp21213929p21213929.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
More information about the Monodevelop-list
mailing list