1234567891011121314151617181920212223242526 |
- using System;
- using System.Collections.Generic;
- using Luticate2.Auth.Utils.Interfaces;
-
- namespace Luticate2.Auth.Utils.Business.Converters
- {
- public class LuConvertersTypeConverter : ILuConvertersTypeConverter
- {
- protected IDictionary<Type, Type> Types { get; set; }
-
- public LuConvertersTypeConverter(IDictionary<Type, Type> types)
- {
- Types = types;
- }
-
- public Type ConvertType(Type typeFrom)
- {
- if (Types.ContainsKey(typeFrom))
- {
- return Types[typeFrom];
- }
-
- return typeFrom;
- }
- }
- }
|