Lower case variable names for POCOs passed to NodeService. #324

Closed
opened 2025-08-09 17:15:51 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @navx2810 on 11/9/2017

I've noticed that when you pass an object to node server, the variable names become lowercase.

class ViewModel {
    public int Age { get; set; }
    public string FirstName { get; set }
}

NodeServices.Invoke(path, new ViewModel { Age = 28, FirstName = "John" });

In javascript the object looks like

{ age: 28, firstName: "John" }

Is this the intended design? If so, is there any way to override this?

*Originally created by @navx2810 on 11/9/2017* I've noticed that when you pass an object to node server, the variable names become lowercase. ```c# class ViewModel { public int Age { get; set; } public string FirstName { get; set } } NodeServices.Invoke(path, new ViewModel { Age = 28, FirstName = "John" }); ``` In javascript the object looks like ```js { age: 28, firstName: "John" } ``` Is this the intended design? If so, is there any way to override this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#324
No description provided.