Exemplo n.º 1
0
        private static IComparable DescriptionProperty(IXenObject o)
        {
            if (o is VM vm && vm.DescriptionType() == VM.VmDescriptionType.None)
            {
                //return string.Empty instead of null, or it prints hyphens and looks ugly
                return(string.Empty);
            }

            return(o.Description());
        }