From 59fc41d7f3bb9d9db37a6f7ab8426b3f4a8f86d6 Mon Sep 17 00:00:00 2001 From: cinder Date: Fri, 13 Jun 2025 16:13:49 -0500 Subject: [PATCH] Fix test --- .../examples/TestClient/Commands/Friends/FriendsCommand.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Programs/examples/TestClient/Commands/Friends/FriendsCommand.cs b/Programs/examples/TestClient/Commands/Friends/FriendsCommand.cs index df9feb56..52120779 100644 --- a/Programs/examples/TestClient/Commands/Friends/FriendsCommand.cs +++ b/Programs/examples/TestClient/Commands/Friends/FriendsCommand.cs @@ -39,11 +39,11 @@ namespace OpenMetaverse.TestClient // iterate over the InternalDictionary using a delegate to populate // our StringBuilder output string sb.AppendFormat("has {0} friends:", Client.Friends.FriendList.Count).AppendLine(); - Client.Friends.FriendList.ForEach(delegate(FriendInfo friend) + foreach (var friend in Client.Friends.FriendList) { // append the name of the friend to our output - sb.AppendFormat("{0}, {1}", friend.UUID, friend.Name).AppendLine(); - }); + sb.AppendFormat("{0}, {1}", friend.Value.UUID, friend.Value.Name).AppendLine(); + }; } else {