summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-12-20 01:35:23 +0000
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-12-23 13:50:12 -0300
commit0954e501fd4008c40b3848de1f2c91bcd53b2f71 (patch)
tree3b6e45b69d24c85fcd0463eb605837cebe410c6a /src/lib/eolian_cxx
parented0572a33a28429f1ad6e47cb5bee9ef816e4a45 (diff)
csharp: Property Indexer implementation
Use Indexers to use brackets, eg [i], syntax. Keys now can be used as following: var someVal = obj.SomeProperty[key]; obj.SomeProperty[key] = someNewVal; And for multiple keys: var someVal = obj.SomeProperty[(key1, key2)]; obj.SomeProperty[(key1, key2)] = someNewVal; T8384 Reviewed-by: WooHyun Jung <wh0705.jung@samsung.com> Differential Revision: https://phab.enlightenment.org/D10791
Diffstat (limited to '')
-rw-r--r--src/lib/eolian_cxx/grammar/klass_def.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp
index 86fb61e8a3..48b8b52c80 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -897,7 +897,7 @@ struct function_def
897 } 897 }
898 else if(type == EOLIAN_PROP_GET) 898 else if(type == EOLIAN_PROP_GET)
899 { 899 {
900 for(auto&& v : values) 900 for(auto v : values)
901 { 901 {
902 v.direction = parameter_direction::out; 902 v.direction = parameter_direction::out;
903 parameters.push_back(v); 903 parameters.push_back(v);