Nov 10, 2010 at 10:54 AM
Edited Nov 10, 2010 at 11:03 AM
i have some trouble with using my WCF generated Model Classes in the ViewModelProject. The WCF Generated Classes are located in their own project with some code around. The Problem is, when i have a model class like this:
Public Class TestClass
Public Property TestProperty() As Cinch.ObservableDictionary(Of Byte, Double)
TestProperty = New ObservableDictionary(Of Byte, Double)
i get an error when i try to get/set the property of "TestClass" in my ViewModel project. In the ViewModel iam using the following code snippet to access the property "TestProperty":
Dim test As New TestClass
' When trying to access the property an exception is thrown
Dim x = test.TestProperty
when doing that, i get a "MissingMethodException" with the following message:
Method not found: "Void TestClass.get_TestProperty(Cinch.ObservableDictionary`2<Byte,Double>)". That only occurs when using Dictionaries or Lists, primitive properties or classes as properties are working.
When "Testclass" is in the same project as the Viewmodel, everything works fine (Bute thats not really an option in my case).
Do you have any idea why this does not work ?