415 バイト追加,
2020年4月3日 (金) 06:51
[[Java]]だと[[Intent]]の[[引数]]にclassを使う。
<source lang="java">
Intent intent = new Intent(this, AboutActivity.class);
startActivity(intent);
</source>
[[Xamarin.Android]]では[[Intent]]の[[引数]]にtypeofを使う。
<source lang="csharp">
var intent = new Intent(this, typeof(AbouActivity));
this.StartActivity(intent);
</source>
ほとんど同じだな。
[[category: Xamarin.Android]]