Exemplo n.º 1
0
        public EnumTranslation <T>[] UpdateOrCreateEnumTranslation <T>(EnumTranslation <T>[] translation) where T : struct, IConvertible
        {
            if (translation == null || translation.Length == 0)
            {
                return(EnumTranslationFactory.CreateEnumTranslation <T>(TranslationSource));
            }

            return(EnumTranslationFactory.UpdateEnumTranslation(TranslationSource, translation));
        }
Exemplo n.º 2
0
 public static EnumTranslation <T>[] CreateDefaultEnumTranslation()
 {
     return(EnumTranslationFactory.CreateEnumTranslation <T>(null));
 }
 public EnumTranslation <T>[] CreateEnumTranslation <T>() where T : struct, IConvertible
 {
     return(EnumTranslationFactory.CreateEnumTranslation <T>(TranslationSource));
 }