Пример #1
0
        /// <summary>Sets the properties of <paramref name="o"/> from the properties of <paramref name="child"/>.</summary>
        static internal void GetProperties <T>(T o, Efl.IModel child)
        {
            var properties = typeof(T).GetProperties();

            foreach (var prop in properties)
            {
                using (var v = child.GetProperty(prop.Name))
                {
                    SetPropertyFromValue(o, prop, v);
                }
            }
        }
Пример #2
0
 /// <summary>Gets the value of the given property in the wrapped model.</summary>
 public Eina.Value GetProperty(System.String property)
 {
     return(model.GetProperty(property));
 }