W
wandering1
I would assume that the following would declare the variable someClass
and it's scope would be confined to the if statement.
if((SomeClass someClass =
this.DoesASomeClassExist(identifier))!=null){
someClass.DoSomething();
}
Is there a better more compact way to write this that I cannot think
of?
Am I getting inappropriate compiler errors(in other words should this
compile)?
Thanks,
Harlan
and it's scope would be confined to the if statement.
if((SomeClass someClass =
this.DoesASomeClassExist(identifier))!=null){
someClass.DoSomething();
}
Is there a better more compact way to write this that I cannot think
of?
Am I getting inappropriate compiler errors(in other words should this
compile)?
Thanks,
Harlan