<p>I've run across the following line in a VB6 application.</p>

<pre><code>mobjParentWrkBk.ExcelWorkBook.Application.Selection.Insert Shift:=xlToRight
</code></pre>

<p>Unfortunately Google and other search engines have not been very useful as they seem to omit the := part. </p>

<p>What would be a C# equivalent?</p>

This is Visual Basic syntax for optional named parameters. The
```
Insert
```
function has a parameter named
```
Shift
```
, which is being specified.
C#, as far as I know, doesn't have an equivalent for optional named parameters. Instead, you'd need to call the
```
Insert
```
method, specifying
```
Type.Missing
```
for all parameters other than
```
Shift
```
.
See also the following StackOverflow question:
VB.NET := Operator
UPDATE (2008-10-29):
C# 4.0 is set to introduce optional and named parameters. See this
blog entry on codebetter.com
.