Forum Discussion
Mike_Thompson_9
Nimbostratus
Aug 08, 2007CommonULong64 OverflowException
I am trying to convert the CommonULong64 type to UInt64 in .NET for a CommonStatistic type. Sometimes this works fine and I get a good number back. Other times I get a System.OverflowException. The...
Mike_Thompson_9
Nimbostratus
Aug 13, 2007So, you are saying I should be doing something like this:
Public Shared Function Build64(ByVal value As Object) As String
Return FormatNumber((Convert.ToUInt64((value.high >> 16) And &HFFFF) << 16) Or _
Convert.ToUInt64(value.high And &HFFFF) Or _
(Convert.ToUInt64((value.low >> 16) And &HFFFF) << 16) Or _
Convert.ToUInt64(value.low And &HFFFF), 0)
End Function
Thanks....
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects