private bool CheckRangeValid(GetRangeDelegate func) { CameraErrorFactory.ThrowIfError(func(_camera.GetHandle(), out int min, out int max), "Failed to check feature is suported or not."); return(min < max); }
private bool CheckRangeValid(GetRangeDelegate func) { func(_camera.GetHandle(), out int min, out int max). ThrowIfFailed("Failed to check feature is suported or not."); return(min < max); }
private Range?GetRange(GetRangeDelegate func) { CameraErrorFactory.ThrowIfError(func(_camera.GetHandle(), out int min, out int max), "Failed to initialize the camera settings"); if (min > max) { return(null); } return(new Range(min, max)); }