Files
Shrlalgo.RvKits/WPFluent/Controls/NumberBox/INumberParser.cs

29 lines
796 B
C#

// This Source Code is partially based on the source code provided by the .NET Foundation.
// ReSharper disable once CheckNamespace
namespace WPFluent.Controls;
/// <summary>
/// An interface that parses a string representation of a numeric value.
/// </summary>
public interface INumberParser
{
/// <summary>
/// Attempts to parse a string representation of a <see cref="double"/> numeric value.
/// </summary>
double? ParseDouble(string value);
/// <summary>
/// Attempts to parse a string representation of an <see cref="int"/> numeric value.
/// </summary>
int? ParseInt(string value);
/// <summary>
/// Attempts to parse a string representation of an <see cref="uint"/> numeric value.
/// </summary>
uint? ParseUInt(string value);
}