mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2026-01-12 17:58:15 +01:00
12 lines
418 B
C#
12 lines
418 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Phantom.Common.Data;
|
|
|
|
namespace Phantom.Controller.Database.Converters;
|
|
|
|
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
|
|
sealed class RamAllocationUnitsConverter() : ValueConverter<RamAllocationUnits, ushort>(
|
|
static units => units.RawValue,
|
|
static value => new RamAllocationUnits(value)
|
|
);
|