KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way to check if a variable is value type of reference type? Imagine: private object GetSomething<T>(params T[] values) { foreach (var value in values) { bool is ValueType; // Check if 'value' is a value type or reference type } }
Tags (comma-separated)
Save Edits
Cancel