I can't change variables from other classes

I’m trying to change variables from other classes but I can’t get them to change.
Class A

public string name;
public string Name
get{return name;}
set{name = value;}

Class B

ClassA.Name = “name”;

Is there something I’m missing? I’m using c# and visualstudio

You need an instance of ClassA because Name is not a static property…

var a = new ClassA();
a.Name = "something";

Also, you don’t need the backing field name to be public because it is exposed through the public Name property.