UInt16.MaxValue フィールド
アセンブリ: mscorlib (mscorlib.dll 内)
構文
解説
使用例
public class Temperature { public static ushort MinValue { get { return UInt16.MinValue; } } public static ushort MaxValue { get { return UInt16.MaxValue; } } // The value holder protected ushort m_value; public ushort Value { get { return m_value; } set { m_value = value; } } }
public ref class Temperature { protected: // The value holder short m_value; public: static property short MinValue { short get() { return UInt16::MinValue; } } static property short MaxValue { short get() { return UInt16::MaxValue; } } property short Value { short get() { return m_value; } void set( short value ) { m_value = value; } } property short Celsius { short get() { return (short)((m_value - 32) / 2); } void set( short value ) { m_value = (short)(value * 2 + 32); } } }; }
public class Temperature { /** @property */ public static int get_MinValue() { return System.Convert.ToInt16(UInt16.MinValue); } //get_MinValue /** @property */ public static int get_MaxValue() { return System.Convert.ToInt16(UInt16.MaxValue); } //get_MaxValue // The value holder protected int mValue; /** @property */ public int get_Value() { return mValue; } //get_Value /** @property */ public void set_Value(int value) { mValue = value; } //set_Value } //Temperature
public class Temperature { public static function get MinValue() : ushort { return UInt16.MinValue; } public static function get MaxValue() : ushort { return UInt16.MaxValue; } // The value holder protected var m_value : ushort ; public function get Value() : ushort { return m_value; } public function set Value(value : ushort) { m_value = value; } }
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- UInt16.MaxValue フィールドのページへのリンク