So I've written code to bring in different family types. Up till now I'd copied the same 159 lines of code. Into different .cs files seen on the right of my screen shot (48 of those). The only difference between them are 3 lines. They are the red ones.
Rather then having the same lines of code multiplied over and over (bad idea!) I'd love it if those three different lines could be pushed to a shared subroutine (the bottom circled part) I'm assuming it would be its own.cs file on the right?
How do I made my three lines of code get pushed over, how do I get the shared code to accept those three text strings?
Thanks I appreciate it. I'm learning C# by smashing my head into the wall over and over. I'll get through it!