Exemplo n.º 1
0
 public TValue this[TKey key]
 {
     get
     {
         return((TValue)AnyValueConverter.ToType(new AnyValue(ValueNative.qi_value_map_get(this._handle, key.Handle)), typeof(TValue)));
     }
     set
     {
         ValueNative.qi_value_map_set(this._handle, key.Handle, value.Handle);
     }
 }
Exemplo n.º 2
0
 public static QiValue <T> ToType <T>(T value, Type targetType) where T : QiValue <T>
 {
     return((T)AnyValueConverter.ToType(value as AnyValue, targetType));
 }