summaryrefslogtreecommitdiff
path: root/nejdb/Ejdb.SON/BSONArray.cs
diff options
context:
space:
mode:
Diffstat (limited to 'nejdb/Ejdb.SON/BSONArray.cs')
-rw-r--r--nejdb/Ejdb.SON/BSONArray.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/nejdb/Ejdb.SON/BSONArray.cs b/nejdb/Ejdb.SON/BSONArray.cs
index 6d66215..b05db90 100644
--- a/nejdb/Ejdb.SON/BSONArray.cs
+++ b/nejdb/Ejdb.SON/BSONArray.cs
@@ -25,6 +25,12 @@ namespace Ejdb.SON {
}
}
+ public object this[int key] {
+ get {
+ return GetObjectValue(key.ToString());
+ }
+ }
+
public BSONDocument SetNull(int idx) {
return base.SetNull(idx.ToString());
}