I have the following method with generic type:
T GetValue();
I would like to limit T to primitive types such as int, string, float
Here's what you're looking for:
T GetObject() where T : struct;