Using Extension Methods

Originally published at: Using Extension Methods – Xojo Programming Blog

Want a quick and easy way to add capabilities to bulit-in classes and types without subclassing? Try extension methods. An extension method is a method that is called using syntax that indicates it belongs to another object. For example, say you really don’t like writing code like this that increments an integer value: downloadCounter =…