public bool RemoveDataTable <T>() { QuikTableAttribute attr = typeof(T).GetTypeInfo().GetCustomAttribute <QuikTableAttribute>(); if (attr == null) { throw new AttributeNotFoundException(typeof(QuikTableAttribute)); } return(RemoveDataChannel(attr.Name)); }
public DataTable <T> AddDataTable <T>() where T : new() { QuikTableAttribute attr = typeof(T).GetTypeInfo().GetCustomAttribute <QuikTableAttribute>(); if (attr == null) { throw new AttributeNotFoundException(typeof(QuikTableAttribute)); } DataTable <T> table = new DataTable <T>(); AddDataChannel(attr.Name, table); return(table); }