- ふらっとVisual C#,C♯,C#(初心者用) Part111
191 :デフォルトの名無しさん[sage]:2014/04/24(木) 21:15:44.44 ID:DE2OqBZn - カーソルがピタット止まって気持ち悪い
| - ふらっとVisual C#,C♯,C#(初心者用) Part111
192 :デフォルトの名無しさん[sage]:2014/04/24(木) 21:20:16.41 ID:DE2OqBZn - 誤爆った
public struct A{ public static string str; public struct B{ public static string str_b1; public static string str_b2; } public class Class{ public string c_str; } public static Class C = new C(); public static Class[] D = new D[2]{ new D(), new D() }; } こんな構造体があるとして A.B.str_b1; A.B.str_b2; A.C.c.str; A.D[0].c_str; A.D[1].c_str; foreach的な感じで値取得ってできない?
|
|