• R/O
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

練習用です。いろんなものがごちゃまぜです。


Commit MetaInfo

Revision99 (tree)
Time2015-12-28 10:52:33
Authorbellyoshi

Log Message

Change Summary

Incremental Difference

--- tanosii/chap01/chap02/Program.cs (revision 98)
+++ tanosii/chap01/chap02/Program.cs (revision 99)
@@ -10,7 +10,7 @@
1010 {
1111 static void Main(string[] args)
1212 {
13- list1.start(args);
13+ list2.start(args);
1414 Console.ReadLine();
1515
1616 }
--- tanosii/chap01/chap02/list2.cs (nonexistent)
+++ tanosii/chap01/chap02/list2.cs (revision 99)
@@ -0,0 +1,33 @@
1+using System;
2+using System.Collections.Generic;
3+using System.Linq;
4+using System.Text;
5+using System.Threading.Tasks;
6+
7+namespace chap02
8+{
9+ class list2
10+ {
11+ public static void start(string[] args)
12+ {
13+ var x = new A();
14+ x.Method1();
15+ x.Method2();
16+ }
17+ }
18+ class A
19+ {
20+ public void Method1()
21+ {
22+ Console.WriteLine("in class A");
23+ }
24+ }
25+ static class B
26+ {
27+ public static void Method2(this A a)
28+ {
29+ a.Method1();
30+ Console.WriteLine("in class B");
31+ }
32+ }
33+}