コード例 #1
0
 internal void SetField <T>(ref DirtyList <T>?field, IList <T>?value, [CallerMemberName] string?propertyName = null)
 {
     if (!ReferenceEquals(field, value))
     {
         field = value != null ? new DirtyList <T>(value) : null;
         OnPropertyChanged(propertyName);
     }
 }
コード例 #2
0
 internal IList <T> GetField <T>(ref DirtyList <T>?field) => field ?? (field = new DirtyList <T>());