Created
October 27, 2021 14:34
-
-
Save AhmedTarekHasan/d1e9ad1aa1d30b2850755c056590f57c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is the class implementing our IReaderWriter<TData> | |
// but now we know that it is going to save and retrieve | |
// data to and from a file. We would not care about the | |
// implementation so don't give it too much thought. | |
public class FileReaderWriter<TData> : IReaderWriter<TData> where TData : Data | |
{ | |
public void Initialize() { throw new NotImplementedException(); } | |
public TData Read(int dataId) { throw new NotImplementedException(); } | |
public void Write(TData data) { throw new NotImplementedException(); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment