blob: be1c74fe523b249d199645e079d7f117abdb417c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
using System;
using System.Collections.Generic;
using System.Text;
namespace Tango.SystemInfo
{
public class SystemObject
{
public String Name { get; set; }
public List<SystemObjectProperty> Properties { get; set; }
public SystemObject()
{
Properties = new List<SystemObjectProperty>();
}
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;
}
}
}
|