コード例 #1
0
        private string GetServerName(ManagementObjectBase obj)
        {
            string serverName =
                Servers.First(x => x.Services.Select(s => s.Name).Contains(obj.Name)).Name;

            return(serverName);
        }
コード例 #2
0
 private string GetServerName(ManagementObjectBase obj)
 {
     string serverName =
         Servers.First(x => x.Services.Select(s => s.Name).Contains(obj.Name)).Name;
     return serverName;
 }