Esempio n. 1
0
 public void SetPropertyValueInfoAsProppyType <T> (DescriptorPropertyInfo info, ValueInfo <T> value, PropertyVariation variations)
 {
     try {
         info.SetValue(this, value.Value);
     } catch (Exception ex) {
         LoggingService.LogError("Error setting the value", ex);
     }
 }
Esempio n. 2
0
        public async Task <ValueInfo <T> > GetPropertyValueInfoAsProppyType <T> (DescriptorPropertyInfo propertyInfo)
        {
            T value = await propertyInfo.GetValueAsync <T> (this);

            return(new ValueInfo <T> {
                Value = value,
                Source = ValueSource.Local,
                //ValueDescriptor = valueInfoString.ValueDescriptor,
                //CustomExpression = valueString
            });
        }
 public ITypeInfo GetRealType <T> (T item)
 => DescriptorPropertyInfo.ToTypeInfo(item.GetType());