Converting a VB.NET Shared Function to C#
<p>I used a converter program to convert this vb to C#</p>



<pre class="lang-vb prettyprint-override"><code>Public Overloads Shared Function ExecuteReader(ByVal statement As String, ByVal commandType As CommandType, _
    ByVal paramCollection As ArrayList, ByVal connectionDelegate As OpenDatabaseConnection, _
    ByVal outputConnectionObject As IDbConnection, ByVal CommandTimeout As Int16) As InstantASP.Common.Data.IDataReader

Return PrivateExecuteReader(Configuration.AppSettings.DataProvider, _
    statement, commandType, paramCollection, connectionDelegate, outputConnectionObject, CommandTimeout)

End Function
</code></pre>

<p>I'm not familiar with VB.NET and I don't know why this converter converted it to C# with all these refs.  I don't even use ref much if at all and don't think this is the best/cleanest way to convert this.  But I'm having trouble understanding all this including the conversion and if this makes any sense whatsoever after the conversion.</p>



<pre class="lang-cs prettyprint-override"><code>public static IDataReader ExecuteReader(string statement, CommandType commandType, ArrayList paramCollection, OpenDatabaseConnection connectionDelegate, IDbConnection outputConnectionObject, Int16 commandTimeout)
{
    return PrivateExecuteReader(ref AppSettings.DataProvider(), ref statement,
        ref commandType, ref paramCollection, ref connectionDelegate,
        ref outputConnectionObject, ref commandTimeout);
}
</code></pre>
