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 AccessLevelBaseDTO ToBaseDTO(this AccessLevel_DTO enumType) { switch (enumType) { case AccessLevel_DTO.IsPrivate: return(AccessLevelBaseDTO.IsPrivate); case AccessLevel_DTO.IsProtected: return(AccessLevelBaseDTO.IsProtected); case AccessLevel_DTO.IsProtectedInternal: return(AccessLevelBaseDTO.IsProtectedInternal); case AccessLevel_DTO.IsPublic: return(AccessLevelBaseDTO.IsPublic); } throw new Exception(); }