/// <summary> /// Returns whether the view has the specified property. /// </summary> /// <param name="name">Property name.</param> /// <returns>True if the view has the property.</returns> public virtual bool HasProperty(string name) => PropertyInfoHelper.Find(_view, name) != null;
/// <summary> /// Returns the value of a property. /// </summary> /// <typeparam name="T">Property type.</typeparam> /// <param name="name">Property name.</param> /// <returns>Property value.</returns> public T Get <T>(string name) { var propInfo = PropertyInfoHelper.Find(_view, name); return((T)propInfo?.GetValue(_view)); }