System.Convert.Convert.ToInt16 C# (CSharp) Метод

ToInt16() публичный статический Метод

public static ToInt16 ( long value ) : short
value long
Результат short
		public static short ToInt16 (long value) 
		{ 
			if (value > Int16.MaxValue || value < Int16.MinValue) 
				throw new OverflowException (Locale.GetText (
					"Value is greater than Int16.MaxValue or less than Int16.MinValue"));

			return (short)value; 
		}

Same methods

Convert.Convert::ToInt16 ( System.DateTime value ) : short
Convert.Convert::ToInt16 ( bool value ) : short
Convert.Convert::ToInt16 ( byte value ) : short
Convert.Convert::ToInt16 ( char value ) : short
Convert.Convert::ToInt16 ( decimal value ) : short
Convert.Convert::ToInt16 ( double value ) : short
Convert.Convert::ToInt16 ( float value ) : short
Convert.Convert::ToInt16 ( int value ) : short
Convert.Convert::ToInt16 ( object value ) : short
Convert.Convert::ToInt16 ( object value, IFormatProvider provider ) : short
Convert.Convert::ToInt16 ( sbyte value ) : short
Convert.Convert::ToInt16 ( short value ) : short
Convert.Convert::ToInt16 ( string value ) : short
Convert.Convert::ToInt16 ( string value, IFormatProvider provider ) : short
Convert.Convert::ToInt16 ( string value, int fromBase ) : short
Convert.Convert::ToInt16 ( uint value ) : short
Convert.Convert::ToInt16 ( ulong value ) : short
Convert.Convert::ToInt16 ( ushort value ) : short