I have a few questions on what the best practices of certain things in VB.Net might be.
1. If I am displaying an number in a label, should I convert it to a string myself or should I just leave it as it works anyway?
Example
2.
When I am disposing of a dataset that may be created again later, I do not need to clear any tables in it first do I, because everything in the table is 'deleted' when I dispose of the dataset of which the table is in? And I do not need to dispose of each table separately because disposing of the dataset will get rid of all of the tables. Presumably I only need to clear it if I am going to use the table again before it is recreated after being disposed.
1. If I am displaying an number in a label, should I convert it to a string myself or should I just leave it as it works anyway?
Example
Code:
Label1.Text = intNumber
'Or
Label1.Text = intNumber.ToString
2.
When I am disposing of a dataset that may be created again later, I do not need to clear any tables in it first do I, because everything in the table is 'deleted' when I dispose of the dataset of which the table is in? And I do not need to dispose of each table separately because disposing of the dataset will get rid of all of the tables. Presumably I only need to clear it if I am going to use the table again before it is recreated after being disposed.