PC Review


Reply
Thread Tools Rate Thread

about composite attribute

 
 
aXqd
Guest
Posts: n/a
 
      18th Feb 2007
rencently i always write something like this:

[Serializable]
[A]
[B]
[C]
public class FooClass{}

i wonder if i can merge them:

[D]
public class FooClass{}

i guess i can do some magic in the constructor of DAttribute class,
such as CodeDom...or something?? and according to the MSDN, i have to
do this trick before the FooClass gets compiled. is that possible?

thx in advance

 
Reply With Quote
 
 
 
 
Oliver Sturm
Guest
Posts: n/a
 
      18th Feb 2007
Hello aXqd,

>rencently i always write something like this:
>
>[Serializable]
>[A]
>[B]
>[C]
>public class FooClass{}
>
>i wonder if i can merge them:
>
>[D]
>public class FooClass{}


I think there's no way you can merge them like that. But of course you can
do:

[Serializable, A, B, C]
public class Foo { ... }


Oliver Sturm
--
http://www.sturmnet.org/blog
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Attribute 'ms_2d_layout' is not a valid attribute of element 'table' CdnRebel Microsoft ASP .NET 4 4th Jul 2007 07:56 PM
Validation (XHTML 1.0 Transitional): Attribute 'height' is not a valid attribute of element 'table' perspolis Microsoft ASP .NET 1 23rd Jan 2007 07:57 AM
Validation (XHTML 1.0 Transitional) - Attribute..... is not a valid attribute of..... Radu Microsoft ASP .NET 2 3rd Jan 2007 03:41 PM
Validation (XHTML 1.0 Transitional): Attribute 'leftmargin' is not a valid attribute of element 'body'. anonymous Microsoft ASP .NET 1 2nd Aug 2006 09:05 AM
Composite control with dynamic composite controls sleigh Microsoft ASP .NET 1 12th Feb 2004 06:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:27 PM.