Question:Define ref, out and params modifier? 

Answer In C# ref modifier is used to pass arguments by reference. Out: An out modifier is like a ref modifier except it need not be assigned before going into the function. Params: The params modifier may be specified on the last parameter of a method so that the method accepts any number of parameters of a particular type. The parameter type must be declared as an array. 

+ Report
Total Preview: 1133
Define ref, out and params modifier?
Copyright © 2024. Powered by Intellect Software Ltd