From AS3 to C#, Part 9: Even More Special Functions

Tags: , ,

Last week’s article continued the discussion of special types of functions in C#’s class system, including variable numbers of arguments (“var args”), indexers, and conversion operators. Today’s article should finish up the topic of special functions. Read on to learn about the built-in support for delegates, events, and object initializers!

Read the rest of this article »

No Comments

From AS3 to C#, Part 8: More Special Functions

Tags: , , , ,

Today we’ll continue talking about special types of functions in C#. Specifically, today’s article will cover indexers, explicit and implicit conversions, and variable numbers of arguments (“var args”).

Read the rest of this article »

1 Comment

From AS3 to C#, Part 7: Special Functions

Tags: , ,

Last week we discussed extension methods and virtual functions and today we’ll continue with more special kinds of C# functions. We’ll cover operator overloading, out parameters and reference parameters.

Read the rest of this article »

4 Comments

From AS3 to C#, Part 6: Extension Methods and Virtual Functions

Tags: ,

Today’s article continues from the last two in discussing features of C# classes that AS3 doesn’t have. We’ll discuss extension methods and the virtual function system that trips up so many C# newcomers.

Read the rest of this article »

No Comments

From AS3 to C#, Part 5: Static Classes, Destructors, and Constructor Tricks

Tags: , , , , ,

Last week’s article mostly covered abstract classes, but this week we’ll discuss an even more abstract type of class: static classes. We’ll also explore C#’s anti-constructor, known as a destructor, and some fancy ways to construct a class. Read on and learn some more class-related features that were never available to us in AS3.

Read the rest of this article »

6 Comments

From AS3 to C#, Part 4: Abstract Classes and Functions

Tags: , , , , ,

Continuing from last time, this article begins covering features of C# classes that aren’t in AS3. We’ll begin with abstract classes and functions, which AS3 required workaround code to enforce even at run-time. Today’s article shows you how to use C# to cleanly enforce these at compile-time.

Read the rest of this article »

7 Comments

From AS3 to C#, Part 3: AS3 Class Parity

Tags: , , , , , , , ,

Picking up from last time, today we’ll finish off classes in C# from an AS3 perspective in preparation for next week when we delve into all-new concepts that aren’t in AS3 at all. Read on to learn the C# way to implement getters and setters, final functions and classes, const variables, and packages.

Read the rest of this article »

4 Comments

From AS3 to C#, Part 2: Extending Classes and Implementing Interfaces

Tags: , ,

Let’s continue the From AS3 to C# series from last time by continuing to investigate C# classes from an AS3 developer’s point of view. Today’s article will cover class inheritance, interface implementing, and interface inheritance.

Read the rest of this article »

6 Comments

From AS3 to C#, Part 1: Class Basics

Tags: , ,

This article is for the AS3 developer who’s decided to switch to Unity and doesn’t know the first thing about programming in C#. It’ll walk you through the basics of C# to get you oriented and productive.

Read the rest of this article »

10 Comments

From Flash to Unity

Today marks a big change for JacksonDunstan.com and the Tip of the Week e-mail list. After writing about AS3, Flash, and AIR for five years and 317 articles, I’m going to start writing about C# and Unity3D. Today I have posted two articles. The first talks about why I’m switching from Flash to Unity and the second is the beginning of a series of transitional articles entitled From AS3 to C#. Read on for the first article.

Read the rest of this article »

46 Comments