From 64e058b0b59a4fbbd6c0ec9de2ee1850a66684c4 Mon Sep 17 00:00:00 2001 From: Todd Schavey Date: Tue, 4 Jan 2022 12:11:52 -0500 Subject: [PATCH] #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. --- ElectronNET.API/Entities/ProcessVersions.cs | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/ElectronNET.API/Entities/ProcessVersions.cs b/ElectronNET.API/Entities/ProcessVersions.cs index ce61fcb..df41db6 100644 --- a/ElectronNET.API/Entities/ProcessVersions.cs +++ b/ElectronNET.API/Entities/ProcessVersions.cs @@ -1,18 +1,10 @@ namespace ElectronNET.API { /// - /// + /// An object listing the version strings specific to Electron /// - public class ProcessVersions - { - /// - /// Gets or sets a value representing Chrome's version string. - /// - public string Chrome { get; set; } - - /// - /// Gets or sets a value representing Electron's version string. - /// - public string Electron { get; set; } - } -} \ No newline at end of file + /// Value representing Chrome's version string + /// Value representing Electron's version string + /// + public record ProcessVersions(string Chrome, string Electron); +} \ No newline at end of file