Tag: .NET

  • Delegates, Lambda Expressions & Closures in C#

    Delegates, Lambda Expressions & Closures in C#

    If you are familiar with programming, you might have heard of a specific paradigm called functional programming. Most modern languages, such as Java and C#, have integrated some functional elements over time. Other, like Scala and Haskell, were built around that very idea of functional programming. This online course will look at some of the functional…

  • Iterators in C#: yield, IEnumerable & IEnumerator

    Iterators in C#: yield, IEnumerable & IEnumerator

    Iterating over lists in C# is often done using for loops. This tutorial shows how the foreach construct can be coupled with the yield statement to create more elegant and safe code.

  • Extension methods in C#

    Extension methods in C#

    Following the heritage of C++, C# comes with a number of powerful features which can either be used to massively improve your code …or to make it completely unreadable. In this post we’ll discuss a technique to add new methods to already existing classes. Yes, even classes you don’t have access to such as Vector3, Rigidbody and even string. Let’s introduce extension methods with…