mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-17 21:26:37 +00:00
ElectronNET.API: Move API code to subfolder
This commit is contained in:
33
src/ElectronNET.API/API/Entities/Size.cs
Normal file
33
src/ElectronNET.API/API/Entities/Size.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
namespace ElectronNET.API.Entities
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Size
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the width.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The width.
|
||||
/// </value>
|
||||
public int Width { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the height.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The height.
|
||||
/// </value>
|
||||
public int Height { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Convert this <see cref="Size"/> to <see cref="System.Drawing.Size"/>.
|
||||
/// </summary>
|
||||
/// <param name="size">The size.</param>
|
||||
public static implicit operator System.Drawing.Size(Size size)
|
||||
{
|
||||
return new System.Drawing.Size(size.Width, size.Height);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user