Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do I need to use Copy or just assignment?
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Do I need to use Copy or just assignment?
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01601829
Message ID:
01601829
Views:
41
Hi everybody,

I have the following code
dtInstructors = dtInstructorsAll.Copy();
I am thinking, do I really need to use Copy or I can simply use

dtInstructors = dtInstructorsAll;

instead?

My code is dealing with the dtInstructors data table.

Can you please also explain the difference between these 2 variables in first and second case?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform