IProjectionEnumPairSpecifier <TSource, TTarget> IFullProjectionSettings <TSource, TTarget> .PairEnum <TFirstEnum>(
     TFirstEnum enumMember)
 {
     return(EnumPairSpecifier <TSource, TTarget, TFirstEnum> .For(ConfigInfo, enumMember));
 }
示例#2
0
 /// <summary>
 /// Configure this mapper to pair the given <paramref name="enumMembers"/> with members of another
 /// enum Type. Pairings will apply to mappings between all types and MappingRuleSets (create new,
 /// overwrite, etc).
 /// </summary>
 /// <typeparam name="TPairingEnum">The type of the enum members to pair.</typeparam>
 /// <param name="enumMembers">The enum members to pair.</param>
 /// <returns>
 /// An IMappingEnumPairSpecifier with which to specify the set of enum members to which the given
 /// <paramref name="enumMembers"/> should be paired.
 /// </returns>
 public IMappingEnumPairSpecifier <object, object> PairEnums <TPairingEnum>(params TPairingEnum[] enumMembers)
     where TPairingEnum : struct
 {
     return(EnumPairSpecifier <object, object, TPairingEnum> .For(GlobalConfigInfo, enumMembers));
 }
 public IMappingEnumPairSpecifier <TSource, TTarget> PairEnum <TFirstEnum>(TFirstEnum enumMember)
     where TFirstEnum : struct
 {
     return(EnumPairSpecifier <TSource, TTarget, TFirstEnum> .For(ConfigInfo, enumMember));
 }
 /// <summary>
 /// Configure this mapper to pair the given <paramref name="enumMembers"/> with members of another enum Type.
 /// Pairings will apply to mappings between all types, irrespective of the MappingRuleSet used.
 /// </summary>
 /// <typeparam name="TFirstEnum">The type of the first set of enum members being paired.</typeparam>
 /// <param name="enumMembers">The first set of enum members to pair.</param>
 /// <returns>
 /// An EnumPairSpecifier with which to specify the set of enum members to which the given <paramref name="enumMembers"/>
 /// should be paired.
 /// </returns>
 public EnumPairSpecifier <TFirstEnum> PairEnums <TFirstEnum>(params TFirstEnum[] enumMembers) where TFirstEnum : struct
 => EnumPairSpecifier <TFirstEnum> .For(_mapperContext, enumMembers);