How to convert FileInfo type to IResource type

What is txtFile varaible type?
try this one
LocalResource.FromPath(txtFile.ToString)

1 Like