Not that I knew. It's pretty accurate that your only option is to do it like this:
Request request = new Request { Property1 = something1, Property3 = something3 }; if(something) request.Property2 = someting2;
Or you can do it like this if there is a default / null value that you can set for it:
Request request = new Request { Property1 = something1, Property2 = something ? someting2 : null, Property3 = something3 };
Alconja
source share