summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/NumericExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/NumericExtensions.cs')
-rw-r--r--Xamarin.Forms.Core/NumericExtensions.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/Xamarin.Forms.Core/NumericExtensions.cs b/Xamarin.Forms.Core/NumericExtensions.cs
index 6333c36..fb7c78a 100644
--- a/Xamarin.Forms.Core/NumericExtensions.cs
+++ b/Xamarin.Forms.Core/NumericExtensions.cs
@@ -1,14 +1,18 @@
using System;
+using System.ComponentModel;
-namespace Xamarin.Forms
+namespace Xamarin.Forms.Internals
{
- internal static class NumericExtensions
+ public static class NumericExtensions
{
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
public static double Clamp(this double self, double min, double max)
{
return Math.Min(max, Math.Max(self, min));
}
+ [EditorBrowsable(EditorBrowsableState.Never)]
public static int Clamp(this int self, int min, int max)
{
return Math.Min(max, Math.Max(self, min));