Skip to content

About

c# extension library

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

202 Commits

Folders and files

Repository files navigation

eXtensionSharp

"eXtensionSharp" is a static class method extension.

This is a project that creates many useful methods based on null safe.

Refer to the test code for how to use it.

Support

net7, net8, net9

Version

  • 1.0.9

    • issue resolved 123.xValue<string>() == null
  • 1.0.8

    • add xValueOfArray [1,2,3].xValueOfArray(0) == 1 or [1,2,3].xValueOfArray(3) == 0
    • add hlist var list = new HList<int, string, DateTime>(); list.Add(1); list.Add("string");
    • remove Env.IsWindows(). replace OperatingSystem.IsWindows()
  • 1.0.6

    • issue resolved null.xValue<string>(string.Empty) == string.Empty
  • 1.0.5

    • enhanced xValue([DefaultValue])
    • issue resolved Guid.NewGuid().ToString().xValue<Guid>()
  • 1.0.4

    • change crypto class and function name
  • 1.0.3

    • add xGetOrAdd, xTryUpdate method for Dictionary<>
  • 1.0.2

    • change datetime extensions, rename and remove method.
    • remove xenum.
    • name change xToEntity -> xDeserialize, xToJson -> xSerialize
    • xIsEmpty no more check datetime type.
    • more information refer XDateTimeTest.cs code.
  • 1.0.1.12

    • remove - xToJoin
    • change - xJoin, if empty collection, return string.empty.]()
  • 1.0.1.11

    • change - xIsEmpty dose not support Number type.
    • remove - xIsNumber(this T obj), remain xIsNumber(this string str)
    • error modify - xBatch error modify.
  • 1.0.0.10

    • error modify - xcrypthmac -> fromHexToByte, fromHexToString xforeach loop error
  • 1.0.0.9

    • remove - xForEach: remove thread.sleep
    • remove - xForEach: remove number type from to xforeach, use Enumerable.Range(from, to)
    • modify - xForEach: change xforeach func item priority. (int Index, Generic T Item)
    • remove - XHttpExtension
    • add - xToDayOfWeek : day of week name (base by cultureinfo)
    • etc - XFileExtension change huge naming.
    • caution - xForEach can happen object null exception.
      case 1 : use AOT, happen exception after serialize object.
  • 1.0.0.8

    • add - xToDictionary(this DataTable datatable) return IDictionary<string, object?>
    • add - xToDate(this DateTime dt, string format, CultureInfo culture) return string
    • modify - xBetween(this DateTime v, DateTime from, DateTime to) return bool
    • modify - project file - target framework
    • abort - XEnumBase<> - don't use more. use smartenum.
    • remove - FastDeepCloner - don't use more. use mapster.
  • 1.0.0.6

    • add - static string xDistinct(this IEnumerable items)
    • support net8

Acknowledgements

JetBrains kindly provides eXtensionSharp with a free open-source licence for their Resharper and Rider.

  • Resharper makes Visual Studio a much better IDE
  • Rider is fast & powerful cross platform .NET IDE

JetBrains Logo (Main) logo.

About

c# extension library

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages