Decorate the method with [Obsolete]
You can do it in c# using the obsolete attribute .
[ Obsolete ]public void SetEmployeeName(string name){Name = name;}