private static void DoPlaylist(RequestSearch requestSearch, Socket asker) { string userUID = MyServer.Clients.GetUser(asker).UID; var playlists = UsersInfos.GetPlaylists(userUID).Where(p => Search.Find(requestSearch.Name, p.Name)); (new RequestAnswer(playlists.Cast <IElement>().ToList(), ElementType.Playlist, requestSearch.Name)).Send(asker); }