Skip to content

Support for string ScriptNames #206

Open
@dested

Description

@dested

An attribute like "Content-Type" has to be faked with Dictionary, instead of [ScriptName] being able to determining this key needs to be accessed as a hash (item["funky-key"] vs item.funky-key.

Setup:

...
[ScriptName("Content-Type")]
public int ContentType;
...

foo.ContentType="text/html";

Expected:

foo["Content-Type"]="text/html";

Actual:

foo.Content-Type="text/html";

I gave [ScriptName("['Content-Type']")] a try, but it caused numerous issues, obviously.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions