TypeConvert 2.1.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package TypeConvert --version 2.1.5
NuGet\Install-Package TypeConvert -Version 2.1.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TypeConvert" Version="2.1.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TypeConvert --version 2.1.5
#r "nuget: TypeConvert, 2.1.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TypeConvert as a Cake Addin
#addin nuget:?package=TypeConvert&version=2.1.5

// Install TypeConvert as a Cake Tool
#tool nuget:?package=TypeConvert&version=2.1.5

Utility class for conversions between .NET types.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 is compatible.  netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 2.0

    • No dependencies.
  • .NETCoreApp 2.1

    • No dependencies.
  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.3

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.6 8,798 11/11/2020
2.1.5 1,095 9/26/2020
2.1.4 4,824 7/5/2018
2.1.3 1,277 6/20/2018
2.1.2 1,406 5/31/2018
2.1.0 1,351 5/29/2018
2.0.0 1,567 5/21/2018
1.2.0 1,553 1/14/2018

# 2.1.5
- added case-insensitive EnumHelper.Parse overloads
- fixed: Uri -> string conversion should use Uri.Original string instead of Uri.ToString()
- fixed: HexConvert.ToString(buffer, offset, count) dont respect count parameter
- fixed: HexConvert.ToBytes(hexBuffer, offset, count) dont respect count parameter
- fixed: `Unable to cast object of type 'System.Linq.EmptyPartition1[System.TypeConvert+ConvertMethodInfo]' to type 'ConvertMethodInfo[]'` due breaking change in .NET 3.0


# 2.1.4
- added TypeConvert.RegisterCustomConversion method that allow override conversion operation between selected types.
- fixed Uri conversion. Relative url is now supported.

# 2.1.3
- fixed conversion methods (ToXXX, FromXXX) on value types cause delegate binding exception

# 2.1.2
- added netstandard2.0 and netcoreapp2.1 target platform
- fixed error with netcoreapp2.1 ByRefLike types (they are not supported in conversion operations)
- fixed error with string->enum conversion (new tests are added)

# 2.1.0
- added conversion via constructor support
- added System.ComponentModel.TypeConverter support for netstandard2.0 platform


# 2.0.0
- added fast conversion for numbers (byte, int, float...)
- added priority of conversion methods (formattable methods, implicit operators, explicit operators, Parse/Create/From/To methods, System.Convert methods)
- optimized performance by cutting redundant initialization of internal classes
- added documentation

# breaking changes
- non-generic Convert and TryConvert signature has been changed. Parameter "fromType" has been removed. Order of parameters has been changed.
- new priority of conversion methods could lead to conversion result that differs from v1.2.0.
- TypeConvert.ToString now returns String.Empty instead of null when null value is passed.
- changed signature of HexConvert's methods for better semantic

# 1.2.0
- fixed error in type activator parameters binding (now more specific types binds successfully)
- added new EnumHelper enum's properties DefaultValue, MinValue, MaxValue, Names, Values, UnderlyingType
- added forth argument to TypeActivator.CreateInstance methods
- TypeActivator signature fix to match .NET 4.5 and .NET Standard 1.3/2.0 build targets

# 1.1.0
- added EnumHelper for enum conversion between number and object form
- added '.NET Standard 1.3' platform target

# 1.0.0.1
- fixed object <-> nullable value, enum <-> nullable conversions