Menu

#3 CCollectionDeserializer - ReadGenericList

open
nobody
None
5
2009-12-29
2009-12-29
Anonymous
No

listType.InvokeMember is not supported in .NET Compact Framework, so if you replace this part in hessiancsharp.io.CCollectionDeserializer.ReadGenericList it works.
#if COMPACT_FRAMEWORK
MethodInfo mInfo = listType.GetMethod("Add", new Type[] { itemType });
mInfo.Invoke(list, new object[] { item });
#else
listType.InvokeMember("Add", BindingFlags.Public | BindingFlags.InvokeMethod, null, list, new object[] { item });
#endif

Discussion


Log in to post a comment.