public static void Main()
Console.WriteLine("Hello World");
Test fool = new Test() { Id = 1, Name = "Fool"};
Test barry = new Test() { Id = 2, Name = "Barry"};
EducatedChanger(ref barry);
Console.WriteLine("Fool");
Console.WriteLine(fool.ToString());
Console.WriteLine("Barry");
Console.WriteLine(barry.ToString());
public static void Changer(Test obj)
public static void EducatedChanger(ref Test obj)
obj.Name = string.Concat(string.IsNullOrWhiteSpace(obj.Name) ? string.Empty : obj.Name, " <- Changed");
public int Id { get; set; }
public string Name { get; set; }
public override string ToString()
return "Id: " + Id.ToString() + "\n" + "Name: " + Name;