简体   繁体   中英

difference between c# and asp.net/c#

do i need to be as strong in c# as an asp.net/c# developer as i would as ac# desktop application developer? there seems to be much less c# coding involved when developing asp.net websites than desktop applications. are there certain things in c# that aren't used as often when used in asp.net websites than in desktop software? i was just wondering if there were different ways of approaching learning the language depending on how it will be applied. thanks.

do i need to be as strong in c# as an asp.net/c# developer as i would as ac# desktop application developer?

Yes.

there seems to be much less c# coding involved when developing asp.net websites than desktop applications

No, not less c#. Just different c#.

Here's the secret: start building your web application and when you run into something you don't know how to do, ask it here.

I think you have to know all the basics of the language when working with ASP.Net.

There are, of course, things that you won't need when working in one or another.

eg When working with ASP.Net, you don't need to know anything about WinForms, and most of the time you won't be working with things like threads.

When working with ASP.Net you'll also have to learn lots of things outside C#, and basically learn the basics of web development.

In my personal experience, one of the things that took me a while to get used to was the stateless model of web development (I worked a lot in desktop applications and this model wasn't very clear at first).

So, yes, you have to be strong at c# to start working with ASP.Net.

As an approach, I recommend you read something about the stateless model, that's a good way to start, in my opinion.

Best regards

You're implying a separation where none exists. The only real difference between ASP.Net and WinForms development is the delivery method. The concepts are the same. Development needs, language restrictions, data concepts, everything still derives from the same framework. The only thing that is truly different is how that end product gets to the customer.

Don't get bogged down in the details of the platform. I think you would do well to understand both platforms of delivery because they are different even if most of it happens "under the covers". Understanding the differences between the two delivery platforms is very useful though.

ASP.NET does a lot of its magic by creating and compiling classes on the fly and calling methods using reflection or on interfaces. You will understand the framework and what it is doing "behind the scenes" a lot better if you actually understand C# (or VB.NET or the .NET Framework in general)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM