mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-13 12:18:08 +00:00
#647 make ProcessVersions Entity a record to ensure readonly access to props
This is to address a PR #648 review comment to ensure that only the external users are not able to modify the instance values.
This commit is contained in:
@@ -1,18 +1,10 @@
|
||||
namespace ElectronNET.API
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// An object listing the version strings specific to Electron
|
||||
/// </summary>
|
||||
public class ProcessVersions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets a value representing Chrome's version string.
|
||||
/// </summary>
|
||||
public string Chrome { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value representing Electron's version string.
|
||||
/// </summary>
|
||||
public string Electron { get; set; }
|
||||
}
|
||||
}
|
||||
/// <param name="Chrome">Value representing Chrome's version string</param>
|
||||
/// <param name="Electron">Value representing Electron's version string</param>
|
||||
/// <returns></returns>
|
||||
public record ProcessVersions(string Chrome, string Electron);
|
||||
}
|
||||
Reference in New Issue
Block a user