[ref], [out], and delegates

You can introduce more .NET into scripts by using more advanced techniques, such as delegate methods. This recipe will also show you what [ref] and [out] types are and what to do when an object method expects such data types.