Answers for "initialization of dictionary in other forms c#"

C#
0

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
Posted by: Guest on November-16-2021

Code answers related to "initialization of dictionary in other forms c#"

C# Answers by Framework

Browse Popular Code Answers by Language