Beispiel #1
0
        public BindableValueInfo(PropertyInfo property, Node owner)
        {
            Property      = property;
            BindableValue = property.GetValue(owner);

            EventInfo = property.PropertyType.GetEvent("OnValueChanged");
            ValueType = property.PropertyType.GetGenericArguments()[0];
            getMethod = BindableValue.GetType().GetMethod("Get", new Type[0]);
            invokeOnValueChangedMethod = BindableValue.GetType().GetMethod("InvokeOnValueChanged", new Type[0]);
        }
Beispiel #2
0
 public AssignableValueInfo(PropertyInfo property, Node owner) : base(property, owner)
 {
     setMethod = BindableValue.GetType().GetMethod("Set", new Type[1] {
         ValueType
     });
 }