private
void teste(ref ControlCollection controles){
}
when i use the void:teste(
ref this.Page.Controls);it returns the error to followError 14 A property or indexer may not be passed as an out or ref parameter
thanks!
private
void teste(ref ControlCollection controles){
}
when i use the void:teste(
ref this.Page.Controls);it returns the error to followKnow the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Thiago ProhaskaPosted Jul 24, 2007, 2:55 PM
Thiago ProhaskaPosted Jul 24, 2007, 2:25 PM
example:
AlanPosted Jul 24, 2007, 2:09 PM
As a workaround, cache it in a variable first:
ControlCollection cc = this.Page.Controls;
teste(ref cc);