From 30c766ffab686d5552d61ffb9c14968062839ce0 Mon Sep 17 00:00:00 2001 From: Hugh Bellamy Date: Mon, 3 Oct 2016 20:49:59 +0100 Subject: [PATCH] Add Math.Clamp overloads to mscorlib.cs (#7462) --- src/mscorlib/ref/mscorlib.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/mscorlib/ref/mscorlib.cs b/src/mscorlib/ref/mscorlib.cs index e716ae4..dad4bba 100644 --- a/src/mscorlib/ref/mscorlib.cs +++ b/src/mscorlib/ref/mscorlib.cs @@ -2517,6 +2517,21 @@ namespace System public static decimal Ceiling(decimal d) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Security.SecuritySafeCriticalAttribute] public static double Ceiling(double a) { throw null; } + public static byte Clamp(byte value, byte min, byte max) { throw null; } + public static decimal Clamp(decimal value, decimal min, decimal max) { throw null; } + public static double Clamp(double value, double min, double max) { throw null; } + public static short Clamp(short value, short min, short max) { throw null; } + public static int Clamp(int value, int min, int max) { throw null; } + public static long Clamp(long value, long min, long max) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte Clamp(sbyte value, sbyte min, sbyte max) { throw null; } + public static float Clamp(float value, float min, float max) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort Clamp(ushort value, ushort min, ushort max) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint Clamp(uint value, uint min, uint max) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong Clamp(ulong value, ulong min, ulong max) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Security.SecuritySafeCriticalAttribute] public static double Cos(double d) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Security.SecuritySafeCriticalAttribute] -- 2.7.4