private void WriteInstance()

in src/VSSetup.PowerShell/PowerShell/GetInstanceCommand.cs [137:148]


        private void WriteInstance(ISetupInstance2 instance, bool all = false)
        {
            if (instance != null)
            {
                var adapted = new Instance(instance);

                if (all || Prerelease || adapted.IsPrerelease != true)
                {
                    WriteObject(adapted);
                }
            }
        }