AutoMapper.TypeMap.GetPropertyMaps C# (CSharp) Method

GetPropertyMaps() public method

public GetPropertyMaps ( ) : PropertyMap[]
return PropertyMap[]
        public PropertyMap[] GetPropertyMaps()
        {
            return _orderedPropertyMaps ?? _propertyMaps.Concat(_inheritedMaps).ToArray();
        }

Usage Example

 public static IEnumerable<MapVisual> X(TypeMap map)
 {
     foreach (var propertyMap in map.GetPropertyMaps())
     {
         yield return new MapVisual
         {
             SourceSystem = extractSystem(propertyMap.SourceMember),
             SourceValue = getValue(propertyMap.SourceMember),
             TargetSystem = extractSystem(propertyMap.DestinationProperty),
             TargetValue = propertyMap.DestinationProperty.Name
         };
     }
 }
All Usage Examples Of AutoMapper.TypeMap::GetPropertyMaps