473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Selective copy and setting and attribute for an object

Hi,

I am looking for a way with which I can selectively copy properties of an
object.
in some circumstances I need to copy all properties
and in the other I need to copy only some of them(always the same)
I am thinking to use attribute if the property should be copy

and I wonder can I set and change an attribute of an object at run time
so when I need to copy all properties I set an attribute for the object
[CopyAll]?
Thanks in advance.

Nov 16 '05 #1
1 1483
Julia,

You can not apply attributes at run time.

Attributes would be a good way to go for what you are doing, for when
you want to copy specific properties all the time.

If you want instance based input (the attribute is type based), then
have an interface that you could query for on the object which indicates
whether or not you have to copy everything.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Julia" <co********@012.net.il> wrote in message
news:eA**************@TK2MSFTNGP10.phx.gbl...
Hi,

I am looking for a way with which I can selectively copy properties of an
object.
in some circumstances I need to copy all properties
and in the other I need to copy only some of them(always the same)
I am thinking to use attribute if the property should be copy

and I wonder can I set and change an attribute of an object at run time
so when I need to copy all properties I set an attribute for the object
[CopyAll]?
Thanks in advance.

Nov 16 '05 #2

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

Similar topics

2
by: Laurent R. Therond | last post by:
Hi, I searched for something like this, but could not locate any information. I may have used bad keywords, or it does not make any sense... Anyhow, there it goes... Let's say you overlay...
4
by: Jean Stax | last post by:
Hi ! I tried to understand when the explicit attribute in copy constructor prevents from me to create a new object. Bellow is the sample code. While the two first cases really generate a...
55
by: Steve Jorgensen | last post by:
In a recent thread, RKC (correctly, I believe), took issue with my use of multiple parameters in a Property Let procedure to pass dimensional arguments on the basis that, although it works, it's...
5
by: Lyners | last post by:
What I want to do, I have a datagrid with totals in one column and a text field in the next. What I would like to provide is a way for the user to click on an arrow under/next to the total amount...
0
by: David J | last post by:
Hi, I am strugling with the propertygrid and a listbox. I am using the universaldropdowneditor from the codeproject (code below). However I am populating the listbox via a datasource. The problem...
8
by: serge calderara | last post by:
Dear all, I have an treeview control with different node object, I would like to implement the Copy/Paste function of an object . For that I am using the folowing function to copy teh object to...
3
by: John | last post by:
Hi Is there a way to for a set-up project to copy a specific file during installation only if destination does not already have this file? Thanks Regards
0
by: arindams | last post by:
I've a form where an webrowser contains a html file. I want to copy a selective portion of the html content and paste that content in an excel 2007 file where it will be pasted as a normal text (not...
11
by: Dijkstra | last post by:
Hi folks! First, this is the code I'm using to expose the problem: ------------------------------------------------------------------ #include <functional> #include <string> #include...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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
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...

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.