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
dd9e9c8d
Commit
dd9e9c8d
authored
Oct 01, 2014
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `ToString[]` extension method
parent
b8e45aef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ExtensionMethods.cs
StackExchange.Redis/StackExchange/Redis/ExtensionMethods.cs
+11
-0
No files found.
StackExchange.Redis/StackExchange/Redis/ExtensionMethods.cs
View file @
dd9e9c8d
...
@@ -111,5 +111,16 @@ public static class ExtensionMethods
...
@@ -111,5 +111,16 @@ public static class ExtensionMethods
}
}
return
result
;
return
result
;
}
}
static
readonly
string
[]
nix
=
new
string
[
0
];
/// <summary>
/// Create an array of strings from an array of values
/// </summary>
public
static
string
[]
ToStringArray
(
this
RedisValue
[]
values
)
{
if
(
values
==
null
)
return
null
;
if
(
values
.
Length
==
0
)
return
nix
;
return
Array
.
ConvertAll
(
values
,
x
=>
(
string
)
x
);
}
}
}
}
}
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