Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

initialization of dictionary in other forms c#

//above public form2 we need to put        
        Dictionary<int, Car<string, string, string>> car;



public Form2(Dictionary<int, Car<string, string, string>> car) // for examle using dictionary and class form form 1 in form 2
        {
            InitializeComponent();
            this.car = car; 
        }
//in form 1 we need to add this for it to work
            Form2 form = new Form2(car);
//by iq18but18cm
 
PREVIOUS NEXT
Tagged: #initialization #dictionary #forms
ADD COMMENT
Topic
Name
7+6 =