I need c# code for a generic class that contains 3 values all of the genetic type. It should have a function that allows an operation to be performed on all the values by passing a func and returning a new instance of the genetic class. Respond with at most 400 words.
user