using System.Diagnostics;
namespace BytecodeApi.Wmi;
///
/// Represents a WMI object instance.
///
[DebuggerDisplay($"{nameof(WmiObject)}: Class = {{Class.Name}}, Properties: {{Properties.Count}}")]
public sealed class WmiObject
{
///
/// Gets the that this was created from.
///
public WmiClass Class { get; }
///
/// Gets the collection of properties of this instance.
///
public WmiPropertyCollection Properties { get; }
internal WmiObject(WmiClass @class, IEnumerable properties)
{
Class = @class;
Properties = new(properties);
}
}