Member Avatar for pilsdumps

Hi,

I've created an objectdataprovider in a resource dictionary with some method parameters.

<ObjectDataProvider x:Key="PatientsList" 
                        ObjectType="{x:Type vm:AllPatientsViewModel}" 
                        MethodName="CreateAllPatients"
                        >
    <ObjectDataProvider.MethodParameters>
      <system: Double>22</system:Double>      
    </ObjectDataProvider.MethodParameters>
  </ObjectDataProvider>

I've having a problem getting the <system:Double> tag to be recognised. I receive the following error:

Error 1 The type 'system:Double' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.


I can't seem to resolve this by adding a reference to the namespace. I thought it should be System, but this does not work.

Can anyone help please?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.