Skip to content

Instantly share code, notes, and snippets.

@AhmedTarekHasan
Created October 27, 2021 14:28
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/18931361e80d455da1b5218406c100a3 to your computer and use it in GitHub Desktop.
Save AhmedTarekHasan/18931361e80d455da1b5218406c100a3 to your computer and use it in GitHub Desktop.
// This is the interface we are going to focus on.
// It is an interface for something that would be able
// to read and write data to something that is ready
// to be used this way.
public interface IReaderWriter<TData> where TData : Data
{
void Initialize();
TData Read(int dataId);
void Write(TData data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment