From 1cdcfe033e9b4b0d6a5288d3cb44d13ee5857471 Mon Sep 17 00:00:00 2001 From: Cinder Biscuits Date: Sat, 8 Jun 2019 16:49:47 -0500 Subject: [PATCH] Suppress CS0618 Obsolete warning --- .../examples/TestClient/Commands/Appearance/CloneCommand.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Programs/examples/TestClient/Commands/Appearance/CloneCommand.cs b/Programs/examples/TestClient/Commands/Appearance/CloneCommand.cs index 557e60ea..09269800 100644 --- a/Programs/examples/TestClient/Commands/Appearance/CloneCommand.cs +++ b/Programs/examples/TestClient/Commands/Appearance/CloneCommand.cs @@ -29,8 +29,10 @@ namespace OpenMetaverse.TestClient if (targetName.Length == 0) return "Usage: clone [name]"; +#pragma warning disable CS0618 // Type or member is obsolete if (Client.Directory.PeopleSearch(DirectoryManager.DirFindFlags.People, targetName, 0, 1000 * 10, out matches) && matches.Count > 0) +#pragma warning restore CS0618 // Type or member is obsolete { UUID target = matches[0].AgentID; targetName += String.Format(" ({0})", target);