Hi @ramadhani.sheffi ,
For a more dynamic approach to Sum up all of the Values of the Dictionary (Provided all values are numbers), we can use the below Expression :
myDict = new Dictionary(of String, String) From {{"A","10"},{"B","20"}, {"C", "30"},{"D","40"}}
TotalSum = myDict.Values.Sum(Function(x)CDbl(x))
Where TotalSum
is of the data Type Double
, myDict
is of Data Type Dictionary(Of String,String)