copy common base class in C#


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: copy common base class in C#

Threaded View

  1. #1
    Join Date
    Aug 2006
    Posts
    3

    copy common base class in C#

    Sorry if this is a basic question, but I haven't been able to figure it out:

    In C#, is there a way to copy the base class properties between 2 objects that share a common base class without copying each base class property separately? eg, Class B and Class C both derive from Class A. I want to copy the base class properties (inherited from Class A) of Class B object into the same inherited properties in a Class C object.
    Last edited by xja; 08-24-2006 at 11:53 AM.

Similar Threads

  1. Replies: 1
    Last Post: 06-05-2006, 02:03 PM
  2. JDOM Classpath Help Required
    By kpandya in forum Java
    Replies: 5
    Last Post: 01-15-2006, 08:10 PM
  3. class vector<?>
    By pseudo in forum C++
    Replies: 3
    Last Post: 02-14-2005, 07:48 AM
  4. Replies: 1
    Last Post: 06-13-2002, 03:52 PM
  5. Replies: 205
    Last Post: 09-26-2001, 02:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center