Hello,
may be this is a very simple question, but I can't find any answer. To initialize a class to an object I know some ways for new, like this
class A; //for short I don't define A
A a = new A();
or
A a = new A(1, "nnn");
or
A a = new A()
A a = new A()
{
x = 1,
s = "nnn"
};
or "anonym"
or "anonym"
var pet = new { x = 1, s = "nnn" };
but what means this point "." in the example downstairs after "new WebHostBuilder()" ?
- var host = new WebHostBuilder()
- .UseKestrel()
- .UseContentRoot(Directory.GetCurrentDirectory())
- .UseIISIntegration()
- .UseStartup
() - .Build();


Amit GuptaRank #190 · 12.8K reputationPosted Nov 24, 2016, 7:07 AM EST
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Nov 24, 2016, 8:18 AM EST
Harald E. Langner9 reputationPosted Nov 24, 2016, 8:50 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Nov 24, 2016, 10:32 PM EST