Skip to content

Commit

Permalink
Removing inheritdoc from maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Renaud committed Mar 20, 2021
1 parent 91c2e3c commit 778066c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ public AddressMap(IMapper mapper)
_mapper = mapper;
}

/// <inheritdoc />
public Address Map(AddressModel source)
{
var zipCode = _mapper.Map<string, ZipCode>(source.ZipCode);
return new Address(source.StreetNumber, source.StreetName, zipCode, source.Country);
}

/// <inheritdoc />
public AddressModel Map((Address address, int personId) source)
{
var (address, personId) = source;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public PersonMap(IMapper mapper)
_mapper = mapper;
}

/// <inheritdoc />
public PersonModel Map(Person source)
{
return new PersonModel
Expand All @@ -27,7 +26,6 @@ public PersonModel Map(Person source)
};
}

/// <inheritdoc />
public Person Map(PersonModel source)
{
// Convert the address model back to an address.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ namespace SampleMapperApp.ConsoleApp.Maps
{
public class ZipCodeMap : IMap<ZipCode, string>, IMap<string, ZipCode>
{
/// <inheritdoc />
public string Map(ZipCode source)
{
return source.Value;
}

/// <inheritdoc />
public ZipCode Map(string source)
{
return new(source);
Expand Down

0 comments on commit 778066c

Please sign in to comment.