From d29da53d6f71f45749c0ede5b4cd7281ed3a270e Mon Sep 17 00:00:00 2001 From: Avi Levkovich Date: Wed, 25 Mar 2020 17:43:49 +0200 Subject: merge --- .../Visual_Studio/Tango.SystemInfo/SystemObject.cs | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Software/Visual_Studio/Tango.SystemInfo/SystemObject.cs (limited to 'Software/Visual_Studio/Tango.SystemInfo/SystemObject.cs') diff --git a/Software/Visual_Studio/Tango.SystemInfo/SystemObject.cs b/Software/Visual_Studio/Tango.SystemInfo/SystemObject.cs new file mode 100644 index 000000000..be1c74fe5 --- /dev/null +++ b/Software/Visual_Studio/Tango.SystemInfo/SystemObject.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Tango.SystemInfo +{ + public class SystemObject + { + public String Name { get; set; } + public List Properties { get; set; } + + public SystemObject() + { + Properties = new List(); + } + + public override string ToString() + { + String msg = String.Empty; + + msg = $"Name: {Name}\n"; + + foreach (var prop in Properties) + { + msg += $"{prop.Name}: {prop.Value}\n"; + } + + return msg; + } + } +} -- cgit v1.3.1