473,616 Members | 2,800 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 1560
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
12644
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 relations with the table containing no primary key. Do I just create two primary keys on the table that does not contain any primary key for this to become a composite primary key? Thank you in advance! Still a newbie,
1
1713
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 change the size of this control at design time. How can I acheive that I was looking into the ImmutableObject attribute to set. But I donot have any public set property ( setters) which does set the size property. Any help is greatly appreciated.
5
4082
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 the child controls appear in the property inspector as sub-properties of the main control and can be manipulated as normal at design time. If any of the properties of the parent (main) control are changed at design time the composite control is...
3
1711
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 mouse over the control I see the following: "Could not load type CompositeControls.TextBoxLabel from assemply CompositeControls ..." Can somebody help, please? Here is source code:
0
1090
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 control ID property as something like "fieldname" the control behaves correctly during the PostData phase and the posted value is stored in the control.
5
1306
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, suitably extended and wrapped. With the aid of an internal and external subset I can do this, as follows: <?xml version="1.0"?> <!DOCTYPE Container
14
5026
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 Object) Is this even possible, or is the composite pattern doomed to use the System.Object type forever? I have tried using interfaces with generics, but I always stumble on the Value property (when trying to return the value of a particular node)
1
1480
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 can easily move it around. Right now, I can make Server-Side validation by using ValidationPropertyAttribute. The problem is i can't seem to make it work Client-Side.
10
1339
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 <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/523048>. Thanks, Dick Moores =====================================================
3
1941
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 Label and the TextBox are each rendered in one of the cells. Everything renders fine. The problem is that depending on the column the control represents I may want the textbox to be a different visible size during both design and runtime. I...
0
8199
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8145
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8642
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8294
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7118
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5550
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1439
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.