Pastable version of How can i use generic class to write useful codes via linq?