Skip to content

a7mdfre7at/Masterly.Extensions.Core

Repository files navigation

Masterly.Extensions.Core

Rich set of C# extensions methods.

Nuget Nuget GitHub last commit GitHub Build CodeQL Analysis Publish to NuGet

Give a Star! ⭐

If you like or are using this project please give it a star. Thanks!

Collection Extensions

  • AddIfNotContains
  • IsNullOrEmpty
  • RemoveAll

Comparable Extensions

  • IsBetween

Dictionary Extensions

  • ToObject
  • ToQueryString
  • TryGetValue
  • GetOrDefault
  • GetOrAdd

Enumerable Extensions

  • RecursiveJoin
  • RecursiveSelect
  • Union
  • IsEmpty
  • Split
  • MatchAny
  • MatchAll
  • AllIn
  • ContainsAll
  • ToHtmlTable

List Extensions

  • InsertRange
  • FindIndex
  • AddFirst
  • AddLast
  • InsertBefore
  • InsertAfter
  • ReplaceWhile
  • ReplaceOne
  • MoveItem
  • GetOrAdd

NameValueCollection Extensions

  • ToQueryString

Object Extensions (System.Reflection)

  • GetPropertyValue
  • SetPropertyValue

Object Extensions (System)

  • Is
  • As
  • To
  • IsIn
  • If
  • AsDictionary
  • ToQueryString
  • TrimStringProperties
  • IsNumber
  • ToJsonString

String Extensions

  • ContainsIgnoreCase
  • Contains
  • EqualsIgnoreCase
  • IsBase64
  • StartsWith
  • StartsWithIgnoreCase
  • EndsWith
  • EndsWithIgnoreCase
  • IsNullOrEmpty
  • IsNullOrWhiteSpace
  • EnsureStartsWith
  • EnsureEndsWith
  • Right
  • Left
  • NormalizeLineEndings
  • NthIndexOf
  • RemovePreFix
  • RemovePostFix
  • ReplaceFirst
  • Split
  • SplitToLines
  • ToCamelCase
  • ToSentenceCase
  • ToKebabCase
  • ToSnakeCase
  • ToEnum
  • ToMd5
  • ToPascalCase
  • Truncate
  • TruncateFromBeginning
  • TruncateWithPostfix
  • GetBytes
  • IsAllUpperCase
  • FirstCharToUpper

Type Extensions

  • GetInterfacesAndAbstractClasses
  • IsAssignableToGenericType
  • HasInterfaceThatMapsToGenericTypeDefinition
  • MapsToGenericTypeDefinition
  • GetFullNameWithAssemblyName
  • IsComplex

License

MIT Free Software, Hell Yeah!