Skip to content

Commit 6bf2d7c

Browse files
committed
Added an indexer to an ObjectPrototype.
For emulation "Bracket notation" in js.
1 parent 2bbfd7b commit 6bf2d7c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CSharpToJavaScript/APIs/JS/Ecma/Object.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,5 +187,19 @@ public dynamic ValueOf()
187187
{
188188
throw new System.NotImplementedException();
189189
}
190+
191+
//For emulation "Bracket notation"
192+
//https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors#bracket_notation
193+
public Object this[string property]
194+
{
195+
get
196+
{
197+
throw new System.NotImplementedException();
198+
}
199+
set
200+
{
201+
throw new System.NotImplementedException();
202+
}
203+
}
190204
}
191205

0 commit comments

Comments
 (0)