Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
75b513a3
Commit
75b513a3
authored
Jul 07, 2016
by
Rob Sigrest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing space/tab issues
parent
2f7eeb21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
RedisValue.cs
StackExchange.Redis/StackExchange/Redis/RedisValue.cs
+6
-6
No files found.
StackExchange.Redis/StackExchange/Redis/RedisValue.cs
View file @
75b513a3
using
System
;
using
System
;
#if CORE_CLR
#if CORE_CLR
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Reflection
;
using
System.Reflection
;
...
@@ -280,7 +280,7 @@ public int CompareTo(RedisValue other)
...
@@ -280,7 +280,7 @@ public int CompareTo(RedisValue other)
double
thisDouble
,
otherDouble
;
double
thisDouble
,
otherDouble
;
CompareType
thisType
=
this
.
ResolveType
(
out
thisInt64
,
out
thisDouble
),
CompareType
thisType
=
this
.
ResolveType
(
out
thisInt64
,
out
thisDouble
),
otherType
=
other
.
ResolveType
(
out
otherInt64
,
out
otherDouble
);
otherType
=
other
.
ResolveType
(
out
otherInt64
,
out
otherDouble
);
if
(
thisType
==
CompareType
.
Null
)
if
(
thisType
==
CompareType
.
Null
)
{
{
return
otherType
==
CompareType
.
Null
?
0
:
-
1
;
return
otherType
==
CompareType
.
Null
?
0
:
-
1
;
...
@@ -511,7 +511,7 @@ static bool TryParseDouble(byte[] blob, out double value)
...
@@ -511,7 +511,7 @@ static bool TryParseDouble(byte[] blob, out double value)
if
(
valueBlob
==
IntegerSentinel
)
if
(
valueBlob
==
IntegerSentinel
)
return
Format
.
ToString
(
value
.
valueInt64
);
return
Format
.
ToString
(
value
.
valueInt64
);
if
(
valueBlob
==
null
)
return
null
;
if
(
valueBlob
==
null
)
return
null
;
if
(
valueBlob
.
Length
==
0
)
return
""
;
if
(
valueBlob
.
Length
==
0
)
return
""
;
try
try
{
{
...
@@ -597,7 +597,7 @@ object IConvertible.ToType(Type conversionType, IFormatProvider provider)
...
@@ -597,7 +597,7 @@ object IConvertible.ToType(Type conversionType, IFormatProvider provider)
/// <summary>
/// <summary>
/// Convert to a long if possible, returning true.
/// Convert to a long if possible, returning true.
///
///
/// Returns false otherwise.
/// Returns false otherwise.
/// </summary>
/// </summary>
public
bool
TryParse
(
out
long
val
)
public
bool
TryParse
(
out
long
val
)
...
@@ -621,7 +621,7 @@ public bool TryParse(out long val)
...
@@ -621,7 +621,7 @@ public bool TryParse(out long val)
/// <summary>
/// <summary>
/// Convert to a int if possible, returning true.
/// Convert to a int if possible, returning true.
///
///
/// Returns false otherwise.
/// Returns false otherwise.
/// </summary>
/// </summary>
public
bool
TryParse
(
out
int
val
)
public
bool
TryParse
(
out
int
val
)
...
@@ -639,7 +639,7 @@ public bool TryParse(out int val)
...
@@ -639,7 +639,7 @@ public bool TryParse(out int val)
/// <summary>
/// <summary>
/// Convert to a double if possible, returning true.
/// Convert to a double if possible, returning true.
///
///
/// Returns false otherwise.
/// Returns false otherwise.
/// </summary>
/// </summary>
public
bool
TryParse
(
out
double
val
)
public
bool
TryParse
(
out
double
val
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment