TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Harald E. Langner
NA
10
2.1k
What means a point after new class()
Nov 24 2016 11:52 AM
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()
{
x = 1,
s = "nnn"
};
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();
Thank you if some would explain me that.
Reply
Answers (
4
)
How to get files from ftp folder in windows application c#
what is the standard C# coding guidelines and namings ?