private string GetDeviceType(RendererDeviceType liveDeviceType) { var descriptionAttr = GetCustomAttribute <DescriptionAttribute>(liveDeviceType); return(descriptionAttr == null ? null : descriptionAttr.Description); }
private void OnRendererDeviceTypeChanged(RendererDeviceType oldValue, RendererDeviceType newValue) { base.DeviceType = GetDeviceType(this.RendererDeviceType); }