Pass to chromedriver capabilities as desiredCapabilities c#
<p>I have software which does automated testing via chrome browser, but now this program failed with error message "Vector smash protection is enabled."
I've found a solution for this case, but this solution implemented via java API.</p>

<pre><code>DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability("chrome.switches", Arrays.asList("--incognito"));
ChromeOptions options = new ChromeOptions();
options.addArguments("test-type");
WebDriver driver = new ChromeDriver(capabilities);
</code></pre>

<p>How to implement a code the same as above via c#?</p>