Learning with SetContext and DataSetSymbols
Author: pichu_1972
Creation Date: 5/24/2016 3:52 PM
profile picture

pichu_1972

#1
Hello, I am still trying to learn about C# and Wealth Lab, now I am working with the DataSetSymbols example (QuickRef).


CODE:
Please log in to see this code.


I have some empty symbols in a huge DataSet, so I have this error: Attempting to Deserialize an empty stream.
I can erase the empty symbols with the Data Tool (Data Manager), but I would like to know if there a C# solution like this:

if DataSetSymbols[ds] is null or empty or something like this....go to the next ds
else SetContext etc etc.

Thanks in advance.
profile picture

Eugene

#2
Hi Juan,

Try this pattern (borrowed here):

CODE:
Please log in to see this code.


Shoud you have some issues as described in Panache's posts just follow his advice in posts #8 or #14 e.g. change this line:

CODE:
Please log in to see this code.
profile picture

pichu_1972

#3
Wonderful Eugene !!
It is working now.
profile picture

Eugene

#4
Glad to have helped.