Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extending mmType
Message
 
To
13/07/2006 18:05:49
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01136261
Message ID:
01136586
Views:
7
Jeff,

>I am wanting to add Guids to the mmType.IsEmpty() method. I could create a class, inherit the mmType and add the appropriate method. Is there a better way to do this? Perhaps some Factory magic?

Or, you could post a message on the UT right before a new release is getting released and the vendor could sneak it in for you <g>. I've added this to the release and given you credit in the What's New Guide.

In answer to your question, though, that's one of the caveats of static methods...you CAN create a subclass and add a custom static method (a new overload in this case), but since the call to a static method requires you to specify the class name as a prefix to the method call (MyClass.MyStaticMethod()), then you would have a mix of code in your app...some that call mmType.IsEmpty() (that you wrote before creating your subclass) and some that call myCustomType.IsEmpty()...not a HUGE issue, but a little messy. Since classes inherit static methods you COULD then go back and change all your mmType references to MyCustomType, but having it added to MM .NET for you is definitely your best solution here <s>.

Best Regards,
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