Skip to content

Releases: aoancea/runtime-mapper

0.0.3-alpha

0.0.3-alpha Pre-release
Pre-release

Choose a tag to compare

@aoancea aoancea released this 26 Jul 20:08

0.0.3-alpha (2017-07-26)

Bug Fixes

  • mapper-string: decouple string mapping from value types mapping as we don't want to get into mapping a string to an int which might crash

Features

  • mapper-value-type: mapping primitive types between value and nullable value types

You can now do something like this:

[TestMethod]
public void DeepCopyTo_Int_To_NullableInt_DestinationCopied()
{
    int source = 5;
    
    int? destination = source.DeepCopyTo<int?>();

    Assert.AreEqual(5, destination);
}
[TestMethod]
public void DeepCopyTo_NullableInt_To_Int_DestinationCopied()
{
    int? source = 5;

    int destination = source.DeepCopyTo<int>();

    Assert.AreEqual(5, destination);
}

Code Refactorings

  • mapper: few renamings, delete comments, indent IfTheElse expression blocks for visibility
  • mapper-value-type: move value type tests such as Int, Guid, Enum inside their own test files for better visibility and grouping

Performance Improvements

  • mapper-collection: remove the fetching of the destinationUnderlyingType while mapping arrays or lists as it was already fetched

Test Coverage

  • mapper-value-type: add object -> value, object -> nullable value, value -> object, nullable value -> object tests

0.0.2-alpha

0.0.2-alpha Pre-release
Pre-release

Choose a tag to compare

@aoancea aoancea released this 25 Jul 12:37
  • Change Target Framework Version to v4.5(net45) for better compatibility with older versionsof .NET(there is no need to migrate towards net461 in order to use Runtime.Mapper)