1. UK VPN, US VPN, CANADA VPN, GERMANY VPN, LUXEMBOURG VPN, HK VPN, CZ VPN.
2. Copy all data from a:Class A's fields to the namesake fields of b:Class B.
I have two class with nearly exactly same attributes, the only difference is
class B's property setter does some argument checking.
[Serializable]
class A
{
private string a;
public string AA
{
get { return a; }
set { a = value; }
}
}
[Serializable]
class B
{
private string a;
public string AA
{
get { return a; }
set
{
if (string.IsNullOrEmpty(value))
{
throw new ApplicationException();
}
a = value;
}
}
}
I want to do the following:
A a = new A();
a.AA = "123123";
B b = (B)a; -- Copy a's attribute values to b.
Please tell me how to implement a generic function to support copying
namesake fields from one class instance to another even when they belongs to
different class type.
Thanks.
zlf
3. How to block file copy function transfer through the VPN.
4. copying files through a vpn
5. How to block file copy function transfer through the VPN.
6. EXCEL FILE a copy/a copy/a copy ....filename
7. using File.Copy to copy files to shared hosting site
8. copy txt file - only copies 1/3 of the file - what happe
9. XCOPY is not copying ascx files while it copies .dll files
10. Error Copying File or Folder message when copying file to CD
11. copy subfolders, replace text in files and save files in copied subfolders
12. File copy tool which can skip bad files during copy?
13. copy txt file - only copies 1/3 of the file - what happened?
14. Can I copy files (mp3) to flash drive WITHOUT copying invisible files?
15. A better file copy function (was copying files )