in src/VSSetup.PowerShell/PowerShell/InstanceAdapter.cs [40:55]
public override PSAdaptedProperty GetProperty(object baseObject, string propertyName)
{
if (baseObject is Instance instance)
{
EnsureProperties(instance);
// Clone the property so the right property value is retrieve.d
var property = properties.TryGet(propertyName);
if (property != null)
{
return new PSAdaptedProperty(propertyName, property.Tag);
}
}
return null;
}