public static Tuple <AccessLevel_DTO, SealedEnum_DTO, AbstractEnum_DTO> MapToSerializationModel(this Tuple <AccessLevelBaseDTO, SealedEnumBaseDTO, AbstractEnumBaseDTO> tuple) { if (tuple == null) { return(null); } AccessLevel_DTO accessLevelBase = tuple.Item1.MapToSerializationModel(); SealedEnum_DTO sealedEnumBase = tuple.Item2.MapToSerializationModel(); AbstractEnum_DTO abstractEnumBase = tuple.Item3.MapToSerializationModel(); return(new Tuple <AccessLevel_DTO, SealedEnum_DTO, AbstractEnum_DTO>(accessLevelBase, sealedEnumBase, abstractEnumBase)); }
public static SealedEnumBaseDTO ToBaseDTO(this SealedEnum_DTO enumType) { switch (enumType) { case SealedEnum_DTO.NotSealed: return(SealedEnumBaseDTO.NotSealed); case SealedEnum_DTO.Sealed: return(SealedEnumBaseDTO.Sealed); } throw new Exception(); }