473,498 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

about composite attribute

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:)

Feb 18 '07 #1
1 1550
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
Feb 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
12616
by: Thomas A. Anderson | last post by:
I am a bit confused in creating a composite primary key. I have three table with two of the tables containing primary keys. I have two of the tables (each with a primary key) having one to many...
1
1702
by: Suresh | last post by:
I am trying to create a composite control which is essentially a panel with 4 labels and 4 check boxes I have designed the control in VisualStudio form designer. I dont want to allow the user to...
5
4068
by: Barry Carr | last post by:
Hi, I've created a composite custom web control and a ControlDesigner descendant to render the control a design time. The child controls are public properties of composite control and as such...
3
1701
by: Mark Goldin | last post by:
I have created a Web composite control that consists of a label and Infragistics WebMaskEdit text box. When I drop that control on my form I have "Error Creating Control ..." thing. When I move a...
0
1082
by: Donal McWeeney | last post by:
Hi, I'm currently playing with a custom composite control at the moment and I can get it to get the posted data back in the control - however not the way I want it to. If I specify the...
5
1290
by: Andy Dingley | last post by:
How can I best make a composite DTD by including one DTD inside another ? There's a pre-existing DTD in an external Apache project. I'd like to make use of this within our internal project,...
14
4999
by: dave.dolan | last post by:
Basically I'd like to implement the composite design pattern with leaves that are either of reference or value types, but even using generics I can't seem to avoid boxing (using ArrayList or...
1
1475
by: drop | last post by:
Hi, I'm using a Composite Date Control that I want to be able to validate Client-Side with the ASP RegularExpression Validator. I want the validator to be outside of the Composite Control so I...
10
1331
by: Dick Moores | last post by:
I'm still trying to understand classes. I've made some progress, I think, but I don't understand how to use this one. How do I call it, or any of its functions? It's from the Cookbook, at...
3
1936
by: Eric | last post by:
I have created a fairly basic composite control consisting of a Label and a TextBox. In the overridden Render function, I'm creating a table with two rows and each row contains a cell (td). The...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7203
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4588
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
290
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.