Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why this cast in mmbindingstrategy.cs?
Message
From
30/08/2004 20:04:12
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Why this cast in mmbindingstrategy.cs?
Miscellaneous
Thread ID:
00937866
Message ID:
00937866
Views:
41
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
Map
View

Click here to load this message in the networking platform