#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:
Todd Schavey
2022-01-04 12:11:52 -05:00
parent 24a2005776
commit 64e058b0b5

View File

@@ -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);
}