优化更新代码,添加界面功能并整合
This commit is contained in:
29
WPFluent/Controls/NumberBox/INumberFormatter.cs
Normal file
29
WPFluent/Controls/NumberBox/INumberFormatter.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
|
||||
|
||||
// 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 returns a string representation of a provided value, using distinct format methods to format
|
||||
/// several data types.
|
||||
/// </summary>
|
||||
public interface INumberFormatter
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns a string representation of a <see cref="double"/> value.
|
||||
/// </summary>
|
||||
string FormatDouble(double? value);
|
||||
|
||||
/// <summary>
|
||||
/// Returns a string representation of an <see cref="int"/> value.
|
||||
/// </summary>
|
||||
string FormatInt(int? value);
|
||||
|
||||
/// <summary>
|
||||
/// Returns a string representation of a <see cref="uint"/> value.
|
||||
/// </summary>
|
||||
string FormatUInt(uint? value);
|
||||
}
|
||||
Reference in New Issue
Block a user