window.ENTITIES={'/api/snippets/cs/c%23%20replace%20all%20occurrences%20of%20character%20with%20empty%20string':[{"result":true,"message":null,"batch":{"type":"cs","name":"c# replace all occurrences of character with empty string","items":[{"id":"DLnevj","type":"cs","name":"C# replace all occurrences of character with empty string","content":"string text = \"ABCA\";\nstring character = \"A\";\ntext = text.Replace(character, \"\");","source":"","author":{"id":"JDKE8o","name":"lena","avatar":"1629141373108__JDKE8o__w40px_h40px.jpg","points":714,"role":"BASIC"},"creationTime":1645114483000,"updateTime":null,"removalTime":null},{"id":"1RW3ND","type":"cs","name":"C# replace all occurrences of character with empty string","content":"using System;\n\npublic class TestClass\n{\n public static void Main()\n {\n string text = \"ABCA\";\n string character = \"A\";\n\n text = text.Replace(character, \"\");\n\n Console.WriteLine(text); // Output: \"BC\"\n }\n}","source":"","author":{"id":"4o21Ma","name":"Elias999","avatar":"1629131252365__4o21Ma__w40px_h40px.jpg","points":819,"role":"BASIC"},"creationTime":1645114485000,"updateTime":null,"removalTime":null}]}}]};