This repository was archived by the owner on Mar 4, 2024. It is now read-only.
-
Couldn't load subscription status.
- Fork 0
Home
Lucas Vos edited this page Jul 16, 2014
·
8 revisions
Some guidelines when converting C# code to Typescript
- conventions
- [Type registration of class, interface and enum] (Type-Registration)
- Delegate
- Operator overloads
- method overloads
- Out Parameter
- Type
- Interface
- [Capitals](Capital Letter)
Registering an Enumaration to the system is done by typing System.Type.registerEnum and the enumaration and after the comma you type the string name.
Sample
module System
{
export enum SampleColor
{
Red,
White,
}
System.Type.registerEnum(SampleColor, "System.SampleColor");
}