private void add(List<Data> Data)
{
var loaddata = new LoadData();
loaddata.add(Data);
}
void SomeMethod() {
new Task(() =>
{
add(DataList);
}).Start();
}
async void Add(List<Data> Data)
{
await Task.Run(() =>
{
var loaddata = new LoadData();
loaddata.add(Data);
});
}
Add(new List<Data>());
async Task Add(List<Data> Data)
{
await Task.Run(() =>
{
var loaddata = new LoadData();
loaddata.add(Data);
});
}
await Add(new List<Data>());