KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have class A { public int a; public string b; } How can i copy A to another A? In C++ i know i could do *a1 = *a2; . Is there something similar in C#? I know i could write a generic solution using reflection but i hope something exist already. I'm considering changing A to a nullable struct. Step 2 i'll need to do class B : A {} class C : A {} and copy the base data from B to C.
Tags (comma-separated)
Save Edits
Cancel