General information
Category:
The Mere Mortals .NET Framework
Title:
Why this cast in mmbindingstrategy.cs?
At line 52 in mmBindingsStrategey.cs I find the following code segment:
{
Control Cntrl = (Control)control;
// If the control is currently disabled re-enable the control
if (control.ControlID == Guid.Empty ||
control.AccessLevel == mmSecurityAccessLevel.Full)
{
control.SetAccessFull();
}
}
Why is the object Cntrl created? It is not referenced before going out of scope. Is this a mistake or is there something else going on here?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only