An error occurred in script '/home/yhr1ef23xez5/public_html/web2/app/model/bannerhit.php' on line 17:
Undefined index: HTTP_REFERER

Array
(
    [type] => post
    [name] => extension-methods
)

WinWrap® | Call Extension Methods From WinWrap® Basic Scripts
logo WinWrap®
June 03, 2012

Call Extension Methods From WinWrap® Basic Scripts

WinWrap® Basic scripts now have full support for extension methods. Call extension methods from WinWrap® Basic scripts. Leverage built-in documentation with extension method autocompletion for WWB.NET macros. Microsoft's support for extension methods provides an easy way to add functionality to existing classes and interfaces.

WinWrap® Basic Extension Method Support

  • Call extension methods from WinWrap® Basic scripts
  • Leverage built-in documentation with extension method autocompletion
  • Add extension methods to .Net Foundation classes
  • Extend a class implemented by another organization
  • Specialize a class for your program's domain specific use

Script Using Extension Method "IsValidEmail" on a String Variable

Extension Method Autocompletion

Sample Extension Method DLL Implementation

Create the "IsValidEmail" extension method in a VS2010 Project DLL.

Extension Method DLL Implementation

It Used to be Difficult to Add Functionality to Classes and Interfaces

  • Source code may not be available
  • Some classes can not be inherited from
  • It's too much to re-implement the functionality from scratch
  • Extending third-party types could be extremely difficult

Microsoft's support for extension methods provides an easy way to add functionality to existing classes and interfaces. WinWrap® Basic supports extension methods. Call extension methods from WinWrap® Basic scripts. Leverage built-in documentation with extension method autocompletion for WWB.NET macros.

Extension Methods MSDN Article

For more information on Extension Methods see the MSDN Magazine article by Adrian Spotty Bowles at link http://msdn.microsoft.com/en-us/magazine/cc163317.aspx. "Extension methods provide a simple mechanism to extend types in the system (value, reference, and interface types) with new methods. These methods extend the original type and can be called like regular, defined instance methods, but they leave the original type and its methods untouched."

Copyright Polar Engineering, Inc.