-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8c4fcc
commit 163a246
Showing
7 changed files
with
1,091 additions
and
1,082 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp100</s:String></wpf:ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
using System; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace DNX.Extensions.Enumerations | ||
namespace DNX.Extensions.Enumerations; | ||
Check failure on line 5 in src/DNX.Extensions/Enumerations/EnumerableExtensions.cs GitHub Actions / Build .NET
|
||
|
||
public static class EnumerableExtensions | ||
{ | ||
public static class EnumerableExtensions | ||
/// <summary> | ||
/// Determines whether the specified enumerable has any elements and is not null | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
/// <param name="enumerable">The enumerable.</param> | ||
/// <returns><c>true</c> if the specified enumerable has any elements; otherwise, <c>false</c>.</returns> | ||
/// <remarks>Also available as an extension method</remarks> | ||
public static bool HasAny<T>(this IEnumerable<T> enumerable) | ||
{ | ||
/// <summary> | ||
/// Determines whether the specified enumerable has any elements and is not null | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
/// <param name="enumerable">The enumerable.</param> | ||
/// <returns><c>true</c> if the specified enumerable has any elements; otherwise, <c>false</c>.</returns> | ||
/// <remarks>Also available as an extension method</remarks> | ||
public static bool HasAny<T>(this IEnumerable<T> enumerable) | ||
{ | ||
return enumerable != null && enumerable.Any(); | ||
} | ||
return enumerable != null && enumerable.Any(); | ||
} | ||
|
||
/// <summary> | ||
/// Determines whether the specified enumerable has any elements that match the predicate and is not null | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
/// <param name="enumerable">The enumerable.</param> | ||
/// <param name="predicate">The predicate.</param> | ||
/// <returns><c>true</c> if the specified predicate has any elements that match the predicate; otherwise, <c>false</c>.</returns> | ||
/// <remarks>Also available as an extension method</remarks> | ||
public static bool HasAny<T>(this IEnumerable<T> enumerable, Func<T, bool> predicate) | ||
{ | ||
return enumerable != null && enumerable.Any(predicate); | ||
} | ||
/// <summary> | ||
/// Determines whether the specified enumerable has any elements that match the predicate and is not null | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
/// <param name="enumerable">The enumerable.</param> | ||
/// <param name="predicate">The predicate.</param> | ||
/// <returns><c>true</c> if the specified predicate has any elements that match the predicate; otherwise, <c>false</c>.</returns> | ||
/// <remarks>Also available as an extension method</remarks> | ||
public static bool HasAny<T>(this IEnumerable<T> enumerable, Func<T, bool> predicate) | ||
{ | ||
return enumerable != null && enumerable.Any(predicate); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
namespace DNX.Extensions.Strings | ||
namespace DNX.Extensions.Strings; | ||
Check failure on line 1 in src/DNX.Extensions/Strings/SplitDelimiterType.cs GitHub Actions / Build .NET
|
||
|
||
/// <summary> | ||
/// How the delimiter is to be treated when splitting text | ||
/// </summary> | ||
public enum SplitDelimiterType | ||
{ | ||
/// <summary> | ||
/// How the delimiter is to be treated when splitting text | ||
/// Any specified value can be a delimiter | ||
/// </summary> | ||
public enum SplitDelimiterType | ||
{ | ||
/// <summary> | ||
/// Any specified value can be a delimiter | ||
/// </summary> | ||
Any = 0, | ||
Any = 0, | ||
|
||
/// <summary> | ||
/// All specified values are the delimiter | ||
/// </summary> | ||
All | ||
} | ||
} | ||
/// <summary> | ||
/// All specified values are the delimiter | ||
/// </summary> | ||
All | ||
} |
Oops, something went wrong.