Class RedisReply
  
  A generic reply from redis which can be explicitly used as an appropriate type.
 
  
  
    Inheritance
    System.Object
    RedisReply
   
  
    Implements
    System.IConvertible
   
  
    Inherited Members
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
   
  
  Assembly: Redis.OM.dll
  Syntax
  
    public class RedisReply : IConvertible
   
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetTypeCode()
  
  
  Declaration
  
    public TypeCode GetTypeCode()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.TypeCode | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ToArray()
  Sends the collection to an array.
 
  
  Declaration
  
    public RedisReply[] ToArray()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | RedisReply[] | 
        the RedisReply as an array. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public bool ToBoolean(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public byte ToByte(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Byte | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public char ToChar(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Char | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public DateTime ToDateTime(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.DateTime | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public decimal ToDecimal(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Decimal | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public double ToDouble(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Double | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public short ToInt16(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int16 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public int ToInt32(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public long ToInt64(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int64 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public sbyte ToSByte(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.SByte | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public float ToSingle(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Single | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ToString()
  
  
  Declaration
  
    public override string ToString()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  Overrides
  System.Object.ToString()
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public string ToString(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public object ToType(Type conversionType, IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Type | 
        conversionType | 
         | 
      
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Object | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public ushort ToUInt16(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt16 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public uint ToUInt32(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt32 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public ulong ToUInt64(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt64 | 
         | 
      
    
  
  Operators
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(RedisReply to RedisReply[])
  implicitly converts the reply to an array of replies.
 
  
  Declaration
  
    public static implicit operator RedisReply[](RedisReply v)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | RedisReply | 
        v | 
        the original reply. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | RedisReply[] | 
        An array of replies. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(RedisReply to Double)
  implicitly converts the reply to a double.
 
  
  Declaration
  
    public static implicit operator double (RedisReply v)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Double | 
        the double. 
 | 
      
    
  
  Exceptions
  
    
      
        | Type | 
        Condition | 
      
    
    
      
        | System.InvalidCastException | 
        thrown if reply could not be converted to a double. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(RedisReply to Double[])
  Converts the reply to an array of doubles.
 
  
  Declaration
  
    public static implicit operator double[](RedisReply v)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Double[] | 
        The doubles. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(RedisReply to Int32)
  implicitly converts the reply into an integer.
 
  
  Declaration
  
    public static implicit operator int (RedisReply v)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
        the integer. 
 | 
      
    
  
  Exceptions
  
    
      
        | Type | 
        Condition | 
      
    
    
      
        | System.InvalidCastException | 
        thrown if it could not be converted to an integer. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(RedisReply to Int64)
  converts a redis reply to a long.
 
  
  Declaration
  
    public static implicit operator long (RedisReply v)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int64 | 
        the long. 
 | 
      
    
  
  Exceptions
  
    
      
        | Type | 
        Condition | 
      
    
    
      
        | System.InvalidCastException | 
        thrown if a long could not be parsed from the reply. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(RedisReply to Nullable<Double>)
  implicitly converts the reply to a double.
 
  
  Declaration
  
    public static implicit operator double? (RedisReply v)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Double> | 
        the double. 
 | 
      
    
  
  Exceptions
  
    
      
        | Type | 
        Condition | 
      
    
    
      
        | System.InvalidCastException | 
        thrown if reply could not be converted to a double. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(RedisReply to Nullable<Int32>)
  implicitly converts the reply to an integer.
 
  
  Declaration
  
    public static implicit operator int? (RedisReply v)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | RedisReply | 
        v | 
        The redis reply. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int32> | 
        the integer. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(RedisReply to Nullable<Int64>)
  converts a redis reply to a long.
 
  
  Declaration
  
    public static implicit operator long? (RedisReply v)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int64> | 
        the long. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(RedisReply to String)
  Converts a redis reply to a string implicitly.
 
  
  Declaration
  
    public static implicit operator string (RedisReply v)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
        the string. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(RedisReply to String[])
  Converts the reply to an array of strings.
 
  
  Declaration
  
    public static implicit operator string[](RedisReply v)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String[] | 
        the array. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(RedisReply[] to RedisReply)
  Implicitly converts an array of replies into a single reply.
 
  
  Declaration
  
    public static implicit operator RedisReply(RedisReply[] vals)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | RedisReply[] | 
        vals | 
        The replies. 
 | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(Double to RedisReply)
  implicitly converts the reply to a double.
 
  
  Declaration
  
    public static implicit operator RedisReply(double d)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Double | 
        d | 
        the double. 
 | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(Int32 to RedisReply)
  Converts an integer to a reply.
 
  
  Declaration
  
    public static implicit operator RedisReply(int i)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        i | 
        the integer. 
 | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(Int64 to RedisReply)
  converts a long to a redis reply.
 
  
  Declaration
  
    public static implicit operator RedisReply(long l)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int64 | 
        l | 
        the long. 
 | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(String to RedisReply)
  implicitly converts a string into a redis reply.
 
  
  Declaration
  
    public static implicit operator RedisReply(string s)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        s | 
        the string. 
 | 
      
    
  
  Returns
  
  Implements
  
      System.IConvertible