// // Licensed under the MIT License. See LICENSE file in the project root for full license information. // namespace MUnique.OpenMU.AttributeSystem; /// /// Common extension methods. /// public static class Extensions { /// /// Returns the input operator as string. /// /// The input operator. /// The textual representation of the input operator. public static string AsString(this InputOperator inputOperator) { return inputOperator switch { InputOperator.Add => "+", InputOperator.Multiply => "*", InputOperator.Exponentiate => "^", InputOperator.ExponentiateByAttribute => "^", InputOperator.Maximum => "", InputOperator.Minimum => "", _ => string.Empty, }; } }