summaryrefslogtreecommitdiff
path: root/src/bindings
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/bindings
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 'src/bindings')
-rw-r--r--src/bindings/mono/efl_mono/GenericModel.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bindings/mono/efl_mono/GenericModel.cs b/src/bindings/mono/efl_mono/GenericModel.cs
index 8d7cc813a2..faa2a2f099 100644
--- a/src/bindings/mono/efl_mono/GenericModel.cs
+++ b/src/bindings/mono/efl_mono/GenericModel.cs
@@ -52,7 +52,7 @@ public class GenericModel<T> : Efl.Object, Efl.IModel
52 /// <summary>Gets the value of the given property in the wrapped model.</summary> 52 /// <summary>Gets the value of the given property in the wrapped model.</summary>
53 /// <param name="property">The property of the model.</param> 53 /// <param name="property">The property of the model.</param>
54 /// <returns>The value of the property.</returns> 54 /// <returns>The value of the property.</returns>
55 public Eina.Value GetProperty( System.String property) 55 public Eina.Value GetProperty(System.String property)
56 { 56 {
57 return model.GetProperty(property); 57 return model.GetProperty(property);
58 } 58 }
@@ -62,7 +62,7 @@ public class GenericModel<T> : Efl.Object, Efl.IModel
62 /// <param name="value">The value of the property.</param> 62 /// <param name="value">The value of the property.</param>
63 /// <returns>An <see cref="Eina.Future" /> that resolves when the property has 63 /// <returns>An <see cref="Eina.Future" /> that resolves when the property has
64 /// been set or reports an error if it could not be set.</returns> 64 /// been set or reports an error if it could not be set.</returns>
65 public Eina.Future SetProperty( System.String property, Eina.Value value) 65 public Eina.Future SetProperty(System.String property, Eina.Value value)
66 { 66 {
67 return model.SetProperty(property, value); 67 return model.SetProperty(property, value);
68 } 68 }
@@ -77,7 +77,7 @@ public class GenericModel<T> : Efl.Object, Efl.IModel
77 /// <summary>Returns an <see cref="Eina.Future" /> that will resolve when the property is ready to be read.</summary> 77 /// <summary>Returns an <see cref="Eina.Future" /> that will resolve when the property is ready to be read.</summary>
78 /// <param name="property">The property of the model.</param> 78 /// <param name="property">The property of the model.</param>
79 /// <returns>An <see cref="Eina.Future" /> that resolves when the property is ready.</returns> 79 /// <returns>An <see cref="Eina.Future" /> that resolves when the property is ready.</returns>
80 public Eina.Future GetPropertyReady( System.String property) 80 public Eina.Future GetPropertyReady(System.String property)
81 { 81 {
82 return model.GetPropertyReady(property); 82 return model.GetPropertyReady(property);
83 } 83 }
@@ -87,7 +87,7 @@ public class GenericModel<T> : Efl.Object, Efl.IModel
87 /// <param name="count">The size of the range.</param> 87 /// <param name="count">The size of the range.</param>
88 /// <returns>An <see cref="Eina.Future" /> that resolves to an 88 /// <returns>An <see cref="Eina.Future" /> that resolves to an
89 /// <see cref="Eina.Array&lt;T&gt;" /> of children models.</returns> 89 /// <see cref="Eina.Array&lt;T&gt;" /> of children models.</returns>
90 public Eina.Future GetChildrenSlice( uint start, uint count) 90 public Eina.Future GetChildrenSlice(uint start, uint count)
91 { 91 {
92 return model.GetChildrenSlice(start, count); 92 return model.GetChildrenSlice(start, count);
93 } 93 }
@@ -141,7 +141,7 @@ public class GenericModel<T> : Efl.Object, Efl.IModel
141 /// <param name="token">The token for the task's cancellation.</param> 141 /// <param name="token">The token for the task's cancellation.</param>
142 /// <returns>Task that resolves when the property has been set or could not 142 /// <returns>Task that resolves when the property has been set or could not
143 /// be set.</returns> 143 /// be set.</returns>
144 public System.Threading.Tasks.Task<Eina.Value> SetPropertyAsync( System.String property, Eina.Value value, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) 144 public System.Threading.Tasks.Task<Eina.Value> SetPropertyAsync(System.String property, Eina.Value value, System.Threading.CancellationToken token=default(System.Threading.CancellationToken))
145 { 145 {
146 return model.SetPropertyAsync(property, value, token); 146 return model.SetPropertyAsync(property, value, token);
147 } 147 }
@@ -151,7 +151,7 @@ public class GenericModel<T> : Efl.Object, Efl.IModel
151 /// <param name="token">The token for the task's cancellation.</param> 151 /// <param name="token">The token for the task's cancellation.</param>
152 /// <returns>Task that resolves when the given property is ready to be 152 /// <returns>Task that resolves when the given property is ready to be
153 /// read.</returns> 153 /// read.</returns>
154 public System.Threading.Tasks.Task<Eina.Value> GetPropertyReadyAsync( System.String property, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) 154 public System.Threading.Tasks.Task<Eina.Value> GetPropertyReadyAsync(System.String property, System.Threading.CancellationToken token=default(System.Threading.CancellationToken))
155 { 155 {
156 return model.GetPropertyReadyAsync(property, token); 156 return model.GetPropertyReadyAsync(property, token);
157 } 157 }
@@ -162,7 +162,7 @@ public class GenericModel<T> : Efl.Object, Efl.IModel
162 /// <param name="token">Token to notify the async operation of external request to cancel.</param> 162 /// <param name="token">Token to notify the async operation of external request to cancel.</param>
163 /// <returns>Task that resolves when the desired <see cref="Eina.Array&lt;T&gt;" /> of 163 /// <returns>Task that resolves when the desired <see cref="Eina.Array&lt;T&gt;" /> of
164 /// children models is ready.</returns> 164 /// children models is ready.</returns>
165 public System.Threading.Tasks.Task<Eina.Value> GetChildrenSliceAsync( uint start, uint count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) 165 public System.Threading.Tasks.Task<Eina.Value> GetChildrenSliceAsync(uint start, uint count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken))
166 { 166 {
167 return model.GetChildrenSliceAsync(start, count, token); 167 return model.GetChildrenSliceAsync(start, count, token);
168 } 168 }