To understand how the stubcode support works in Chameleon, it's important to recognize that the C# classes fall into three distinct categories. This diagram gives an overview:
Overview of C# Classes