Export (0) Print
Expand All

UInt16.MaxValue Field

Represents the largest possible value of UInt16. This field is constant.

This field is not CLS-compliant.  

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

public const ushort MaxValue
public static final UInt16 MaxValue
public const var MaxValue : ushort

The value of this constant is 65535; that is, hexadecimal 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 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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft