❔ Change datatype during program execution
I have following two properties:
private ContextType ExportContext = 0;
private List<T> SelectedItems { get; set; } = new();
During execution, value of ContextType can be changed by user only if SelectedItems is empty.
Based on value of ExportContext, I want to change the datatype T. Is that possible?
private ContextType ExportContext = 0;
private List<T> SelectedItems { get; set; } = new();
During execution, value of ContextType can be changed by user only if SelectedItems is empty.
Based on value of ExportContext, I want to change the datatype T. Is that possible?