Skip to content

For Get/SetJSProperty, Call Builtin .NET JSObject getter/setter if a Supported Type #43

@SerratedSharp

Description

@SerratedSharp

If GetJSProperty/SetJSProperty is called for a type supported by the native .NET InteropService JSObject Get/Set methods, then call those instead. I.e. switch case on requested type, and if for example int then call jsObject.GetPropertyAsInt32("propertyName");, and similarly for jsObject.SetProperty("propertyName", value)

https://github.com/SerratedSharp/SerratedJSInterop/blob/cb6dba9f8351368fada15a6048b25ef45bde2e49/SerratedJSInterop/JSObjectExtensionsV2.cs#L691C1-L734C2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions