Files
HandyControl/src/Shared/HandyControlDemo_Shared/ViewModel/DemoViewModelBase!1.cs
T
2019-04-10 00:53:59 +08:00

26 lines
580 B
C#

using System.Collections.Generic;
using GalaSoft.MvvmLight;
namespace HandyControlDemo.ViewModel
{
public class DemoViewModelBase<T> : ViewModelBase
{
/// <summary>
/// 数据列表
/// </summary>
private IList<T> _dataList;
/// <summary>
/// 数据列表
/// </summary>
public IList<T> DataList
{
get => _dataList;
#if netle40
set => Set(nameof(DataList), ref _dataList, value);
#else
set => Set(ref _dataList, value);
#endif
}
}
}