I have a C# program I am developing.
String customerReference = String.Concat(firstName, lastName);
Customer customerReference = new Customer(firstName, lastName, phoneNumber);
I want to take the ‘literal’ (if thats the right word) value of customerReference to name the instance of the class customer.
As I am unfamiliar with the syntax of the C# language my question may seen confusing, but hopefully someone can help.
If you want to retrieve
Customerinstances by name maybe aDictionary<string, Customer>is what you are looking for: