I am trying out Resharper and i notice that it is recommending to set instance level fields to readonly. For example:
private readonly IConnection _connection;
public RetrieveCommand(IConnection connection) {
_connection = connection;
}
What is the benefit of marking fields like this readonly?