I need a function that can search for a value in an object. Description follows:
Take any root object and search for a any object within the root object.
Will search for the corresponding datatype that is sent in to the function
If, for example, a string is sent it it should compare string with all root and child properties that are strings or contain strings. That could be plain string objects or Lists of strings, Generic Dictionaries with strings in it.
The function must be able to traverse through any depth. For example. Object A contains a Dictionary of Object B, object B has a string property that matches parameter.
Returns a list of ObjectResult which consists of:
- Public ChildObject As Object
- Public ChildObjectType As TypeCode = [url removed, login to view]
- Public PropertyName As String = [url removed, login to view]
- Public PropertyValue As String = [url removed, login to view]
A project is attached which contains the base function and classes-