Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why this cast in mmbindingstrategy.cs?
Message
 
To
30/08/2004 20:04:12
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00937866
Message ID:
00937890
Views:
14
Max,


>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?

Reading the source code now, are we??? <vbg> You caught me! That line of code was necessary at one time but is now superfluous! I'll remove it and give you credit for your find in the next version of the MM .NET What's New Guide.

Thanks,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform