attempting to do:
creating a new string from {"firstname", "lastname"}
code: {"Robert", "Bavin"}, ---> output: robavin@contoso.com
error:
/TestProject/Program.cs(30,44): error CS1061: 'string' does not contain a definition for 'SubString' and no accessible extension method 'SubString' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
proposed approach:
// issue is actually casing it's not SubString it's Substring()
0: SubString()
leaving the issue open though because there are bound to be other hiccups.
proposed approach is return a minimum viable altering of the first name only within the iteration
attempting to do: creating a new string from {"firstname", "lastname"} code: {"Robert", "Bavin"}, ---> output: robavin@contoso.com
error: /TestProject/Program.cs(30,44): error CS1061: 'string' does not contain a definition for 'SubString' and no accessible extension method 'SubString' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
proposed approach: // issue is actually casing it's not SubString it's Substring() 0: SubString()