Learning C# (Day 2): Recommendations on my code + what to learn next

16 hours ago 4
ARTICLE AD BOX

I'm currently learning C# (Day 2) and experimenting with building small utility components. I wrote a simple file‑system wrapper with interfaces, and I’d appreciate feedback on:

Whether the structure makes sense

Naming conventions

Whether the interfaces are meaningful

What concepts I should learn next to improve this kind of code

using System; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace EngineTools2 { public interface IFileSystem { bool pathExists(string path); void deleteFile(string file); void createFile(string file); void moveFile(string source, string destination); void deleteFolder(string directory); }; public interface IFileStreamer { }; public class FileStreamer : IFileStreamer { private FileStream fs; } public class FileSystem : IFileSystem { public bool pathExists(string path) { return Path.Exists(path); } public void deleteFile(string file) { File.Delete(file); } public void createFile(string file) { File.Create(file); } public void moveFile(string source, string destination) { File.Move(source, destination); } public void deleteFolder(string directory) { Directory.Delete(directory); } } public class Program { public static void Main(string[] args) { FileSystem fs = new FileSystem(); // fs.CreateFile("test"); fs.DeleteFile("test"); } } }
Read Entire Article