vb System.UInt32.MaxValue类(方法)实例源码

下面列出了vb System.UInt32.MaxValue 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:Syste   
Dim longValue As Long = Long.MaxValue \ 2
Dim integerValue As UInteger 

If longValue <= UInteger.MaxValue AndAlso _
   longValue >= UInteger.MinValue Then
   integerValue = CUInt(longValue)
   Console.WriteLine("Converted long integer value to {0:n0}.", _
                     integerValue)
Else
   Dim rangeLimit As UInteger
   Dim relationship As String
   
   If longValue > UInteger.MaxValue Then
      rangeLimit = UInteger.MaxValue
      relationship = "greater"
   Else
      rangeLimit = UInteger.MinValue
      relationship = "less"
   End If       

   Console.WriteLine("Conversion failure: {0:n0} is {1} than {2:n0}.", _ 
                     longValue, _
                     relationship, _
                     rangeLimit)
End If


问题


面经


文章

微信
公众号

扫码关注公众号