I am testing the NTFS Reader from
GitHub - michaelkc/NtfsReader: Danny Coutures NtfsReader source (fast NTFS access, like everything)
The dll file has been attached.
But why the code below will not work? Thank you.
GitHub - michaelkc/NtfsReader: Danny Coutures NtfsReader source (fast NTFS access, like everything)
The dll file has been attached.
But why the code below will not work? Thank you.
VB.NET:
Public Interface INodeNew
Inherits INode
End Interface
Public Sub GetItems()
Dim listValue1 As List(Of INode)
Dim listValue2 As List(Of INodeNew)
Dim driveToAnalyze As New DriveInfo("C")
Dim ntfsReader As New NtfsReader(driveToAnalyze, RetrieveMode.All)
listValue1 = ntfsReader.GetNodes(driveToAnalyze.Name) ' This line works well
MessageBox.Show(listValue1.Count)
listValue2 = listValue1.Cast(Of INodeNew).ToList ' This line will not work,
MessageBox.Show(listValue2.Count)
End Sub
Attachments
Last edited by a moderator: