SonarLint.VisualStudio.Progress.Controller.ProgressControllerHelper.IsIndeterminate C# (CSharp) Method

IsIndeterminate() public static method

Returns whether the specified values is indeterminate
public static IsIndeterminate ( double progress ) : bool
progress double The progress for which to check
return bool
        public static bool IsIndeterminate(double progress)
        {
            return double.IsNaN(progress);
        }

Usage Example

 /// <summary>
 /// Returns whether <see cref="Progress"/>  is indeterminate
 /// </summary>
 /// <returns>Whether the current arguments are for indeterminate progress</returns>
 public bool IsProgressIndeterminate()
 {
     return(ProgressControllerHelper.IsIndeterminate(this.Progress));
 }