C
C# Learner
This is probably a silly question but I'll ask to be sure.
Say I have a constructor that looks like this:
public MyClass()
{
items = new string[10];
for (int i = 0; i < items.Length; ++i) {
items = new String();
}
}
Is the following then necessary?
~MyClass()
{
for (int i = 0; i < items.Length; ++i) {
items = null;
}
}
Say I have a constructor that looks like this:
public MyClass()
{
items = new string[10];
for (int i = 0; i < items.Length; ++i) {
items = new String();
}
}
Is the following then necessary?
~MyClass()
{
for (int i = 0; i < items.Length; ++i) {
items = null;
}
}