Skip to content

Streamline API for property access #9

@trogmaniac

Description

@trogmaniac

Use the [] operator to shorten the code. E.g. instead of:

auto width = resolution->GetProperty("width")->GetValueNumber();

i would prefer something short(er) like:

auto width = resolution["width"].AsInt();

This was just a single example, this should work where ever possible.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions