sort out key and value of input

Job ID: 33040844

Budget: $10 – $30 USD

I have a function to return the key and values of an object in a foreach loop. I need the function extended to return the key and values from any object as provided input.
Related categories: C# Programming Visual Studio