[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Is framework having predefined partial classes?

sameem

10/28/2008 10:15:00 AM

Generally we can create parial classes in .net 2.0 version. As I understood
that framework 2.0 (class library) shoud have partial classes. If it is there
please list out some class names.

Otherwise As I mentioned that partial classes are only supported by the
framework2.0. thats it?
5 Answers

Cowboy

10/28/2008 1:45:00 PM

0

AFAIK, only classes that routinely need extending are set up intially as
partial. In general, these are classes generated for you, like DataSets (and
other data constructs), etc.

To extend classes in the framework that are not partial, you would use .NET
3.5 extension methods.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/Greg...

or just read it:
http://feeds.feedburner.com/Gre...

********************************************
| Think outside the box! |
********************************************
"sameem" <sameem@discussions.microsoft.com> wrote in message
news:0D3764D6-73B4-4F77-843D-E0EB3FF44CCB@microsoft.com...
> Generally we can create parial classes in .net 2.0 version. As I
> understood
> that framework 2.0 (class library) shoud have partial classes. If it is
> there
> please list out some class names.
>
> Otherwise As I mentioned that partial classes are only supported by the
> framework2.0. thats it?

Patrice

10/28/2008 2:42:00 PM

0

Yes this is new in 2.0.

This is a compile time thing so there is no partial classes in the .NET
Framework itself (basically it allows to split a *single* class into several
files).

You may want to elaborate a bit (the designer uses partial classes to split
designer generated code and developer code).

--
Patrice

"sameem" <sameem@discussions.microsoft.com> a écrit dans le message de
groupe de discussion : 0D3764D6-73B4-4F77-843D-E0EB3FF44CCB@microsoft.com...
> Generally we can create parial classes in .net 2.0 version. As I
> understood
> that framework 2.0 (class library) shoud have partial classes. If it is
> there
> please list out some class names.
>
> Otherwise As I mentioned that partial classes are only supported by the
> framework2.0. thats it?


sameem

10/30/2008 12:40:00 PM

0

Thanks for info.

my understanding also same. But I dought that .Net 2.0 may have predefined
partial class.

correct me If I wrong. So there is no predefined partial classes in
framework 2.0

Thanks a lot

"Patrice" wrote:

> Yes this is new in 2.0.
>
> This is a compile time thing so there is no partial classes in the .NET
> Framework itself (basically it allows to split a *single* class into several
> files).
>
> You may want to elaborate a bit (the designer uses partial classes to split
> designer generated code and developer code).
>
> --
> Patrice
>
> "sameem" <sameem@discussions.microsoft.com> a écrit dans le message de
> groupe de discussion : 0D3764D6-73B4-4F77-843D-E0EB3FF44CCB@microsoft.com...
> > Generally we can create parial classes in .net 2.0 version. As I
> > understood
> > that framework 2.0 (class library) shoud have partial classes. If it is
> > there
> > please list out some class names.
> >
> > Otherwise As I mentioned that partial classes are only supported by the
> > framework2.0. thats it?
>
>
>

Patrice

10/30/2008 4:29:00 PM

0

They are just a compile time thing. It just allows to compile a class from
multiple files rather than from a single file (and they have all to be
compiled at the same time)...

Once compiled this is something that is unknown i.e. once compiled wether a
class is "partial" or not is just irrelevant...

*Designers* are using partial classes to split a single class beetween user
handled and automatically generated code...

you may want to elaborate a bit about what you are trying to sovle...

--
Patrice

"sameem" <sameem@discussions.microsoft.com> a écrit dans le message de
groupe de discussion : 8F800ABA-E761-4FED-9A55-99330674D4DE@microsoft.com...
> Thanks for info.
>
> my understanding also same. But I dought that .Net 2.0 may have predefined
> partial class.
>
> correct me If I wrong. So there is no predefined partial classes in
> framework 2.0
>
> Thanks a lot
>
> "Patrice" wrote:
>



Jack Jackson

10/30/2008 6:12:00 PM

0

Partial classes are a compile time feature that allows a class
definition to be spread across more than one file. It has no effect
on the compiled code, so it makes no sense to ask if there are
predefined partial classes.

I think maybe you misunderstand what partial classes are.

On Thu, 30 Oct 2008 05:40:01 -0700, sameem
<sameem@discussions.microsoft.com> wrote:

>Thanks for info.
>
>my understanding also same. But I dought that .Net 2.0 may have predefined
>partial class.
>
>correct me If I wrong. So there is no predefined partial classes in
>framework 2.0
>
>Thanks a lot
>
>"Patrice" wrote:
>
>> Yes this is new in 2.0.
>>
>> This is a compile time thing so there is no partial classes in the .NET
>> Framework itself (basically it allows to split a *single* class into several
>> files).
>>
>> You may want to elaborate a bit (the designer uses partial classes to split
>> designer generated code and developer code).
>>
>> --
>> Patrice
>>
>> "sameem" <sameem@discussions.microsoft.com> a écrit dans le message de
>> groupe de discussion : 0D3764D6-73B4-4F77-843D-E0EB3FF44CCB@microsoft.com...
>> > Generally we can create parial classes in .net 2.0 version. As I
>> > understood
>> > that framework 2.0 (class library) shoud have partial classes. If it is
>> > there
>> > please list out some class names.
>> >
>> > Otherwise As I mentioned that partial classes are only supported by the
>> > framework2.0. thats it?
>>
>>
>>