Answers for "what is custom value resolver"

0

what is custom value resolver

public class CustomResolver : IValueResolver<Source, Destination, int>
{
	public int Resolve(Source source, Destination destination, int member, ResolutionContext context)
	{
        return source.Value1 + source.Value2;
	}
}
Posted by: Guest on October-15-2021
0

what is custom value resolver

public class Source
{
	public int Value1 { get; set; }
	public int Value2 { get; set; }
}

public class Destination
{
	public int Total { get; set; }
}
Posted by: Guest on October-15-2021
0

what is custom value resolver

public interface IValueResolver<in TSource, in TDestination, TDestMember>
{
	TDestMember Resolve(TSource source, TDestination destination, TDestMember destMember, ResolutionContext context);
}
Posted by: Guest on October-15-2021

Code answers related to "what is custom value resolver"

Browse Popular Code Answers by Language