I need to compare two dictionary values if the types stored are equal,
this is what i have
if gettype(Args(key)) = gettype(argtypes(key)) then
'' do something
end if
am getting an error
Type Args is not defined
pls can you help me with the problem
EDIT
Both dictionary where initially declared as
Dim dictionaryName As Dictionary(Of Object, Object)
gettypeexpects a type. You’re giving it a value. To get the type of a value, callGetTypeon the value: