In C#, property can be declared with getter and setter. If there is no setter then it shouldn't allow to set?
But this .net core 3.1 example tutorial shows value assigned to such a property. How is this allowed?
Code:
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration {get;}
}