System.Convert.ToUInt32 C# (CSharp) Method

ToUInt32() private method

private ToUInt32 ( double value ) : uint
value double
return uint
        public static uint ToUInt32(double value) {
            if (value >= -0.5 && value < 4294967295.5) {
                uint result = (uint)value;
                double dif = value - result;
                if (dif > 0.5 || dif == 0.5 && (result & 1) != 0) result++;
                return result;
            }
            throw new OverflowException(Environment.GetResourceString("Overflow_UInt32"));
        }

Same methods

Convert::ToUInt32 ( DateTime value ) : uint
Convert::ToUInt32 ( String value ) : uint
Convert::ToUInt32 ( String value, IFormatProvider provider ) : uint
Convert::ToUInt32 ( String value, int fromBase ) : uint
Convert::ToUInt32 ( bool value ) : uint
Convert::ToUInt32 ( byte value ) : uint
Convert::ToUInt32 ( char value ) : uint
Convert::ToUInt32 ( decimal value ) : uint
Convert::ToUInt32 ( float value ) : uint
Convert::ToUInt32 ( int value ) : uint
Convert::ToUInt32 ( long value ) : uint
Convert::ToUInt32 ( object value ) : uint
Convert::ToUInt32 ( object value, IFormatProvider provider ) : uint
Convert::ToUInt32 ( sbyte value ) : uint
Convert::ToUInt32 ( short value ) : uint
Convert::ToUInt32 ( uint value ) : uint
Convert::ToUInt32 ( ulong value ) : uint
Convert::ToUInt32 ( ushort value ) : uint

Usage Example

Beispiel #1
0
        protected override void OnHandleCreated(EventArgs e)
        {
            base.OnHandleCreated(e);
            Win32API.SetWindowTheme(base.Handle, "explorer", null);
            int lParam = Win32API.SendMessage(base.Handle, Convert.ToUInt32(0x112d), 0, 0) | 0x60;

            Win32API.SendMessage(base.Handle, 0x112c, 0, lParam);
        }
All Usage Examples Of System.Convert::ToUInt32