Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

2011-08-11から1日間の記事一覧

"{", "}"(ブレース)で変数のスコープを限定する

C#では"{", "}"(ブレース)で変数のスコープを限定できます。 こんな風に使えます。 using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { { string hoge = "hoge1"; Console.WriteLine(hoge); } { string hog…