Revision: 6488
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 24, 2008 07:57 by umeshT20
Initial Code
VB.net : Public Shared Function GetIconIndex(ByRef item As CShItem, _ Optional ByVal GetOpenIcon As Boolean = False, _ Optional ByVal GetSelectedIcon As Boolean = False _ ) As Integer C# : public static int GetIconIndex(ref CShItem item, bool GetOpenIcon, bool GetSelectedIcon); Call like: Vb.net: lvi.ImageIndex = SystemImageListManager.GetIconIndex(lvi.Tag, False) It works properly. C#: lvi.ImageIndex = SystemImageListManager.GetIconIndex( lvfile.Tag, false); It gives error: Error 22 No overload for method 'GetIconIndex' takes '2' arguments
Initial URL
Initial Description
I try to call vb.net function in c#.The function pass parameter ref and boolean. It is call in vb.net directly .how can i call in c#.
Initial Title
No overload for method 'GetIconIndex' takes '2' argument
Initial Tags
Initial Language
C#