Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Pascal casing on source object properties #27

@avanderhoorn

Description

@avanderhoorn

When Pascal casing is used for the casing on source object properties, it means that the parameters on the listening method also need to be Pascal casing. Normally this wouldn't be a problem, but when you adjust the casing to be Pascal case on the listening method, the adapter throws an exception.

Here is the test case - https://gist.github.com/avanderhoorn/f0106bca8be1a33acd37 - and here is the exception that is raised:

  • ProxyMethodEmitterTest.TargetClassUpperCase does not contain a definition for 'Name' and no extension method 'Name' accepting a first argument of type ProxyMethodEmitterTest.TargetClassUpperCase could be found (are you missing a using directive or an assembly reference?)
  • <anonymous type: string Name, int Age> does not contain a definition for 'name' and no extension method 'name' accepting a first argument of type <anonymous type: string Name, int Age> could be found (are you missing a using directive or an assembly reference?)
  • ProxyMethodEmitterTest.TargetClassUpperCase does not contain a definition for 'Age' and no extension method 'Age' accepting a first argument of type ProxyMethodEmitterTest.TargetClassUpperCase could be found (are you missing a using directive or an assembly reference?)
  • <anonymous type: string Name, int Age> does not contain a definition for 'age' and no extension method 'age' accepting a first argument of type <anonymous type: string Name, int Age> could be found (are you missing a using directive or an assembly reference?)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions