mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-21 23:42:45 +01:00
14 lines
470 B
C#
14 lines
470 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> {
|
|
public RamAllocationUnitsConverter() : base(
|
|
static units => units.RawValue,
|
|
static value => new RamAllocationUnits(value)
|
|
) {}
|
|
}
|