Related resources for generalize function in c#