class Log
{
public int LocationId { set { value = 1; } get; }
}
Will this set the default value for Log as 1 when i use like this: Log l=new log(); Console.Writeline(l.LocationId);
?
I am aware of the normal way of using a property but will this also work?