The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi - I am really getting dynamic with my form and control creation from a backend schema and building the controls on the fly from a DataSet.
I need to reference the objects I create in methods and because the control is declared locally in each method e.g.
CreateTextBox()
{
TextBox tb = new TextBox();
// set properties
}
I need to later reference this object. I was thinking of putting my controls in both Hashtables for immediate reference by a key and into an ArrayList to decide which controls are bound to the database.
My question is, since both of these objects hold references to control object I create - is there much overhead to do this? Having say 100 controls instantiated, then added to the form, then added to a Hashtable and finally to an ArrayList. Does the ArrayList and Hashtable cause much memory allocation or are they just pointers to the memory address of those objects and therefore could be considered lightweight?
thanks for your expertise - much appreciated
mike