Sub SomeMethod as SomeClass
if (some condition) then
Dim obj as SomeClass
obj.initialize
return obj
else
return null
end if
end sub
When calling this method, should I check with "IsInitialized" or check on <> null ?
I noticed some classes have two initialization methods (Initialize and Initialize2) ? If the name is fix, how many Initialize methods can you have then ?
I meant for example the List class which has 2 initialize methods (called initialize and initialize2, probably due to lack of method overloading) ?
Or is this because List is an internal class and that custom classes can't have more than the standard "initialize" ?
Also: I understand I need to check with <> NUll, but then when exactly would you use "IsInitialized" ?