XML Address book example in vb.net p664
Hi
I'm working through the address book example and the first part which serializes one address works fine. The 2nd part which modifies the example for reading and writing multiple addresses is where I'm running into compilation errors. On page 664 the declaration of the addresses property is given as:
Public Property Addresses() as Address()
This gives me an error on the Return statement a few lines down:
Return [u]addressArray</u>
" Value of type '1-dimensional array of XMLAddressBook.Address' cannot be converted to 'XMLAddressBook.Address'."
It seems the compiler is expecting address type not an array of address types. If I change the declaration to:
Public Property Addresses() as Array()
I lose the compilation error but run into a runtime error in
SerializableData.Load with the address type .
I've tried to download the source sample but have not been successful (fails after 100 tries!)
Can anyone give me a clue as to what's going on?
TIA
|