A blog of ASP.NET 2.0 Samples, Articles, Reviews and Discussions. The purpose of this blog is to provide a resource to the quick information that developers need on Microsoft's new ASP.NET 2.0.

Tuesday, December 06, 2005

C# 2005 Partial Classes

I haven't updated my blog in awhile so I wanted to start off with something neat. When I first opened VS 2005, I was staring at the new features;I didn't even realize that the keyword partial was before my class name. I did however realize that there was less code and that Initialize component was missing. I soon discovered that this was because of partial classes. Partial classes allow you to split your class over many class files. This is wonderful for web development as you can just define objects in your aspx and they can be used from your code behind. You no longer have to initialize any components or controls. This is also good if you have complex classes and want to spread the logic over many class files. Who knows how dangerous that is eh?





Link: http://url123.com/dm3gr

I like this guys blog entry of how he is using partial classes. It might be dangerous but I like the risk.
Link: http://url123.com/dmv5s

1 Comments:

Blogger custom web design said...

Hey, you have a great blog here! I'm definitely going to bookmark you!
Cool Links:
custom website design
MCSE
web hosting provider
web site design
Data Conversion, Data Entry Service
Please Come and visit if you get time..
Thanks.

Wednesday, December 07, 2005 2:01:00 AM

 

Post a Comment

Links to this post:

Create a Link

<< Home