scriptsharp
scriptsharp copied to clipboard
Support for string ScriptNames
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.