I'm trying to convert a VB.NET project to C#.
My VB code:
Code:
Dim infoReader As System.IO.FileInfo
infoReader = My.Computer.FileSystem.GetFileInfo(Me.ofdOpenFiles.FileName)
intRecLength = infoReader.Length
Is not converting to C# correctly. The conversion process is converting to this code:
Code:
System.IO.FileInfo infoReader;
infoReader = My.MyProject.Computer.FileSystem.GetFileInfo(this.ofdOpenFiles.FileName);
intRecLength = infoReader.Length;
Microsoft.VisualBasic is a reference.
These using statements are also include:
Code:
using Microsoft.VisualBasic;
using System;
using System.IO;
Thank you for any assistance. I wouldn't mind getting rid of Microsoft.VisualBasic references and namespaces.