// Copyright (c) 2014 Robert Rouhani and other contributors (see CONTRIBUTORS file). // Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE namespace SharpNav.Crowds { /// /// Similar to a boolean, except there is an intermediate variable between true and false. /// public enum Status { /// /// Operation failed to complete /// Failure, /// /// Operation finished /// Success, /// /// Operation in progress /// InProgress } /// /// A static class containing extension methods related to the enum. /// public static class StatusExtensions { /// /// Converts a boolean value to a . /// /// The boolean value. /// The equivalent status. public static Status ToStatus(this bool variable) { return variable ? Status.Success : Status.Failure; } } }