© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•14mo ago•
16 replies
nathanAjacobs

Declaring methods with `in` parameters

If a I'm writing a synchronous method, should I always declare read-only value types with the
in
in
keyword.

void Foo(in int i)
{
    
}
void Foo(in int i)
{
    
}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ ✅ Need help with methods and parameters
C#CC# / help
3y ago
✅ Custom class arrays, parameters, custom methods.
C#CC# / help
3y ago
How to run tweak methods dynamically from JSON with parameters?
C#CC# / help
8mo ago
✅ Methods (with bodies) in interfaces
C#CC# / help
2y ago