Windows アプリケーションで VS2010 Express のように C# で文字列変数を宣言しましたが、
string strVariable = string.Empty;
//ContextUtil.DeactivateOnReturn = true;
try
{
XmlDocument xmlSourceDoc = new XmlDocument();
xmlSourceDoc.LoadXml(strXmlDocument);
strVariable = xmlSourceDoc.DocumentElement.GetAttribute("attire");
デバッグ中strVariable
に監視すると、次のように表示されました
「strVariable」という名前は、現在のコンテキストには存在しません。」
もう1つxmlSourceDoc.DocumentElement.GetAttribute("attire")
、監視すると結果が得られます。
何が問題なのですか?