KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I know complex types are passed by Reference in C# and primitive types are passed by Value. Can I pass primitive types by reference in C#? Update: Thanks for answers, but my example is? void test(object x) { } long y = 1; test(ref y); This throw this exception: The 'ref' argument type doesn´t match parameter type
Tags (comma-separated)
Save Edits
Cancel