Extensions

String Extensions

using System.Globalization; using System.Linq; using System.Text; namespace ALeonJ.Extensions { public static class StringExtensions { public static string RemoveDiacritics(this string value) { if (string.IsNullOrWhiteSpace(value)) { ...
Read More

Stream Extensions

namespace ALeonJ.Extensions { using System.IO; using System.Linq; public static class StreamExtensions { public static bool HasSameContentAs(this MemoryStream memoryStream1, MemoryStream memoryStream2) { ...
Read More

Identity Extensions

namespace ALeonJ.Extensions { using System; using System.Security.Principal; using Microsoft.AspNet.Identity; public static class IdentityExtensions { public static Guid GetUserIdAsGuid(this IIdentity identity) { ...
Read More

Exception Extensions

namespace ALeonJ.Extensions { using System; using System.Collections.Generic; using System.Linq; public static class ExceptionExtensions { public static string MessageWithInnerExceptions(this Exception exception) { ...
Read More

Enumerable Extensions

namespace ALeonJ.Extensions { using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; public static class EnumerableExtensions { public static void ForEach<T>(this IEnumerable<T> ...
Read More