コード例 #1
0
ファイル: GroupB.cs プロジェクト: hbumadian/CSharpForDummies
 public void DoSomethingWithSecretX()
 {
   // Do something with Secret X, now that we can see it.
   GroupA groupA = new GroupA();
   Console.WriteLine("I know Secret X, which is {0} characters long, but " +
     "I'm not telling.", groupA.SecretX.Length);
 }
コード例 #2
0
        public void DoSomethingWithSecretX()
        {
            // Do something with Secret X, now that we can see it.
            GroupA groupA = new GroupA();

            Console.WriteLine("I know Secret X, which is {0} characters long, but " +
                              "I'm not telling.", groupA.SecretX.Length);
        }