Struct Number
  
  Represents an integral number.
Assembly: SixLabors.ImageSharp.dll
  Syntax
  
    public struct Number : IEquatable<Number>, IComparable<Number>
   
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Number(Int32)
  Initializes a new instance of the Number struct.
Declaration
  
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Int32 | value | The value of the number. | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Number(UInt32)
  Initializes a new instance of the Number struct.
Declaration
  
    public Number(uint value)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | UInt32 | value | The value of the number. | 
    
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CompareTo(Number)
  
  
  Declaration
  
    public int CompareTo(Number other)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Number | other |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Equals(Number)
  
  
  Declaration
  
    public bool Equals(Number other)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Number | other |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Equals(Object)
  
  
  Declaration
  
    public override bool Equals(object obj)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Object | obj |  | 
    
  
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetHashCode()
  
  
  Declaration
  
    public override int GetHashCode()
   
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ToString()
  
  
  Declaration
  
    public override string ToString()
   
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Declaration
  
    public string ToString(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IFormatProvider | provider | An object that supplies culture-specific formatting information. | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | String | The string representation of the value of this instance, which consists of a sequence of digits ranging from 0 to 9, without a sign or leading zeros. | 
    
  
  Operators
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Equality(Number, Number)
  Determines whether the specified Number instances are considered equal.
Declaration
  
    public static bool operator ==(Number left, Number right)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Explicit(Number to Int32)
  
  
  Declaration
  
    public static explicit operator int (Number number)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Explicit(Number to UInt16)
  
  
  Declaration
  
    public static explicit operator ushort (Number number)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Explicit(Number to UInt32)
  
  
  Declaration
  
    public static explicit operator uint (Number number)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GreaterThan(Number, Number)
  Determines whether the first Number is more than the second Number.
Declaration
  
    public static bool operator>(Number left, Number right)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GreaterThanOrEqual(Number, Number)
  Determines whether the first Number is more than or equal to the second Number.
Declaration
  
    public static bool operator >=(Number left, Number right)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(Int32 to Number)
  Converts the specified Int32 to an instance of this type.
Declaration
  
    public static implicit operator Number(int value)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Int32 | value | The value. | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(UInt16 to Number)
  Converts the specified UInt16 to an instance of this type.
Declaration
  
    public static implicit operator Number(ushort value)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | UInt16 | value | The value. | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(UInt32 to Number)
  Converts the specified UInt32 to an instance of this type.
Declaration
  
    public static implicit operator Number(uint value)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | UInt32 | value | The value. | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Inequality(Number, Number)
  Determines whether the specified Number instances are not considered equal.
Declaration
  
    public static bool operator !=(Number left, Number right)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  LessThan(Number, Number)
  Determines whether the first Number is less than the second Number.
Declaration
  
    public static bool operator <(Number left, Number right)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  LessThanOrEqual(Number, Number)
  Determines whether the first Number is less than or equal to the second Number.
Declaration
  
    public static bool operator <=(Number left, Number right)
   
  Parameters
  
  Returns
  
  Implements