Skip to content

Commit

Permalink
add back API "IsNullOrWhiteSpace" to CommonExtensions.cs due to break…
Browse files Browse the repository at this point in the history
…ing change
  • Loading branch information
brycewang-microsoft committed May 1, 2023
1 parent b44f4f1 commit ab0705c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions iothub/service/src/Common/Extensions/CommonExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,16 @@ public static void AppendKeyValuePairIfNotEmpty(this StringBuilder builder, stri
}
}

/// <summary>
/// Check if the value is null or empty.
/// </summary>
/// <param name="value">The value to check.</param>
/// <returns>Returns true if the value is null or empty, otherwise returns false.</returns>
public static bool IsNullOrWhiteSpace(this string value)
{
return string.IsNullOrWhiteSpace(value);
}

/// <summary>
/// Removes white spaces from a string.
/// </summary>
Expand Down

0 comments on commit ab0705c

Please sign in to comment.