下記コードの、private SampleNotify _sampleNotify;の一行の中のSampleNotify の意味が分かりません。
SampleNotifyというクラスは別ファイルで定義されているのですが、このようなフィールドでクラス名+変数名と記述することでどのような意味があるのでしょうか。
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace App1 { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class Page1 : ContentPage { private SampleNotify _sampleNotify; public Page1 () { InitializeComponent (); this._sampleNotify = new SampleNotify(); this.BindingContext = this._sampleNotify; this._sampleNotify.labelText = "Update Text"; NavigationPage.SetHasNavigationBar(this, false); } } }
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/04/19 08:16
2018/04/19 08:22
2018/04/19 08:27
2018/04/19 12:39
2018/04/20 00:09