This question is very similar to a previous post: convert-object-to-url-in-c-sharp
I am trying to convert an object to a URL string.
For Example:
public class example {
public string property1;
public int property2;
public double property3;
}
Then the string will come out like
property1=value&property2=value&property3=value
Ideally I would like to not do this with a fancy loop and string manipulation. (Not Lazy, just efficient).
It is for a set class library's, end goal is to work with a Win Forms application, connecting to a third party website which doesn't receive JSON objects. I would like to stay away from using MVC framework stuff.