Пример #1
0
        private String GetName(Guid guid)
        {
            var known = RegisteredAttributes.GetName(guid);

            if (!known.IsNullOrEmpty())
            {
                return(known.EndsWith("Service") ? known : known + " Service");
            }
            return(null);
        }
        private String GetServiceName(Guid guid)
        {
            var known = RegisteredAttributes.GetName(guid);

            return(known.IsNullOrEmpty() ? null : (known.EndsWith("Service") ? known : known + " Service"));
        }