Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions PolyShim/NetCore10/String.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// The following comment is required to instruct analyzers to skip this file
// <auto-generated/>

#if (NETFRAMEWORK && !NET40_OR_GREATER)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
// ReSharper disable PartialTypeWithSinglePart

using System;
using System.Linq;

internal static partial class PolyfillExtensions
{
extension(string)
{
// https://learn.microsoft.com/dotnet/api/system.string.isnullorwhitespace
public static bool IsNullOrWhiteSpace(string? value) =>
value is null || value.All(char.IsWhiteSpace);
Comment thread
Tyrrrz marked this conversation as resolved.
Comment thread
Tyrrrz marked this conversation as resolved.
}
}
#endif
Loading