UInt16.MaxValue フィールドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > UInt16.MaxValue フィールドの意味・解説 

UInt16.MaxValue フィールド

UInt16最大有効値を表します。このフィールド定数です。

このフィールドは、CLS準拠していません。  

名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Const MaxValue As
 UShort
Dim value As UShort

value = UShort.MaxValue
public const ushort MaxValue
public:
literal unsigned short MaxValue
public static final UInt16 MaxValue
public const var MaxValue
 : ushort
解説解説

この定数の値は 65535 で、16 進では 0xFFFF です。

使用例使用例
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;
    }

}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「UInt16.MaxValue フィールド」の関連用語

UInt16.MaxValue フィールドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



UInt16.MaxValue フィールドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS