mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-14 05:34:48 +00:00
21 lines
439 B
C#
21 lines
439 B
C#
namespace ElectronNET.API.Entities;
|
|
|
|
public class PageSize
|
|
{
|
|
private readonly string _value;
|
|
|
|
public PageSize()
|
|
{
|
|
}
|
|
|
|
private PageSize(string value) : this() => _value = value;
|
|
|
|
public double Height { get; set; }
|
|
|
|
public double Width { get; set; }
|
|
|
|
public static implicit operator string(PageSize pageSize) => pageSize?._value;
|
|
|
|
public static implicit operator PageSize(string value) => new(value);
|
|
}
|