Skip to content

Instantly share code, notes, and snippets.

@AhmedTarekHasan
Created October 27, 2021 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AhmedTarekHasan/d1e9ad1aa1d30b2850755c056590f57c to your computer and use it in GitHub Desktop.
Save AhmedTarekHasan/d1e9ad1aa1d30b2850755c056590f57c to your computer and use it in GitHub Desktop.
// 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