コード例 #1
0
 private static DynamicPropertyDictionaryItem ToDictItem(this platformDto.DynamicPropertyDictionaryItem dto)
 {
     var result = new DynamicPropertyDictionaryItem();
     result.InjectFrom<NullableAndEnumValueInjecter>(dto);
     if (dto.DisplayNames != null)
     {
         result.DisplayNames = dto.DisplayNames.Select(x => new LocalizedString(new Language(x.Locale), x.Name)).ToList();
     }
     return result;
 }
コード例 #2
0
        private static DynamicPropertyDictionaryItem ToDictItem(this platformDto.DynamicPropertyDictionaryItem dto)
        {
            var result = new DynamicPropertyDictionaryItem();

            result.Id         = dto.Id;
            result.Name       = dto.Name;
            result.PropertyId = dto.PropertyId;
            if (dto.DisplayNames != null)
            {
                result.DisplayNames = dto.DisplayNames.Select(x => new LocalizedString(new Language(x.Locale), x.Name)).ToList();
            }
            return(result);
        }