public static void Main(string[] args)
PersonInformation person = new PersonInformation { Name = "sara", PhoneNumber = "444-5309-334" };
ref var name = ref GetName(person);
MakeNameCapitalized(ref name);
Console.WriteLine(person.Name);
public static ref string GetName(PersonInformation person)
public static void MakeNameCapitalized(ref string name)
public class PersonInformation
public String PhoneNumber;