Property ConvertJsNameHandler
- Namespace
- DotNetBrowser.Browser
- Assembly
- DotNetBrowser.dll
ConvertJsNameHandler
Gets or sets a handler that is used for the JavaScript name converting. Implement this handler to have control of how the names are converted when binding or executing JavaScript.
IHandler<ConvertJsNameParameters, ConvertJsNameResponse> ConvertJsNameHandler { get; set; }
Property Value
Remarks
The handler should be configured before registering .NET objects on the JavaScript side.
The ConvertJsNameParameters object contains information about the MemberInfo of the .NET object.
Use the NoConversion method to use the member name as is.
Use the CamelCase method to convert the first letter of the name to the lower case.
Use the PascalCase method to convert the first letter of the name to the upper case.
Use the ConvertTo(string) method for customizing the name.
Exceptions
- ObjectDisposedException
The IBrowser has already been disposed.