コード例 #1
0
 public static StartupPreset ToEntity(this StartupPresetItem item)
 {
     return(new StartupPreset()
     {
         Id = item.Id,
         Name = item.Name,
         StartupFileContent = item.StartupFileContent,
     });
 }
コード例 #2
0
        public static StartupPresetItem ToItem(this StartupPreset entity)
        {
            var item = new StartupPresetItem()
            {
                Id   = entity.Id,
                Name = entity.Name,
                StartupFileContent = entity.StartupFileContent,
                IsDirty            = false
            };

            return(item);
        }