Saturday, May 22, 2010

I want to restrict parameters that enter the function, some of them are refrence(pointer) and I want it just?

read and not change in function, what word I type to prevent it from changes?(in C# or others)

I want to restrict parameters that enter the function, some of them are refrence(pointer) and I want it just?
const parameter_name





use const to make sure it is not changed


No comments:

Post a Comment