I want to assign to a datatable such that.
If datatable is null create a new datatable else clear datatable
The code I have written
datatable= (datatable== null) ?
new DataTable() :
delegate(){datatable.Clear(); return datatable;});
How this will be possible using delegates or anonymous methods? Using shortest code possible.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)