何らかの理由でTryGetValue
を動作させることができません。最高のオーバーロードされたメソッドの一致に無効な引数がいくつかあります
Dictionary<String,String> testdict = new Dictionary<String,String>();
String teststr = "test";
if(testdict.TryGetValue(teststr,out value))
{
//Ladida
}
エラーは受け取ら:
The best overloaded method match for 'System.Collections.Generic.Dictionary<string,string>.TryGetValue(string, out string)' has some invalid arguments
誰もが私のコードで間違って何を教えてもらえますか?
ここで、 'value'はどこに定義されていますか? –
* value *はstring型の変数ではありません。私たちはそれを見ることができません。 –