VBA Match to C#

I'm converting Excel VBA to C# (using a VSTO project in Visual Studio .NET). The bellow code is puzzling me, since there are no similar function in C#.

result = Application.WorksheetFunction.Match(stringA, Range(stringB), 0)
If result = 0 Then DoStuff

How can I replicate the above functionality in C#? Thanks


Try this

result = Application.WorksheetFunction.Match(stringA, Range(stringB), 0);
if (iTemp_result == 0) 

Need Your Help

Accessing Files whose Names are With an unknown Encoding

java encoding filenames nio

When walking the file tree of a linux machine (perhaps also other Unix), I can encounter files or dirs names who are encoded with different encodings than the one returned by Java's default charset (

Is it possible to add labeled points to a dc.js line chart?

d3.js dc.js crossfilter

I like dcjs, http://bl.ocks.org/d3noob/6584483 but the problem is I see no labels anywhere for the line chart (Events Per Hour). Is it possible to add a label that shows up just above the data poin...