我是C#的初學者。 我試圖使搜索&一個小工具更換c#搜索和替換
我有這個輸入:
"name" => "Hello world",
我想這樣的輸出:
'name' =>__('Hello world','$Variable'),
這是我的嘗試:
private string ReplaceBackgroundDirection(string Source)
{
Source = Source.Replace("name", "name");
Source = Source.Replace("=>"+"", "=> __(");
我不明白你的問題,請嘗試定義你想要的... –