Files
protocol/test/converter/getter-setter/getter-setter.ts
2015-02-07 19:04:50 +01:00

12 lines
261 B
TypeScript

class GetterSetter
{
private _name:string;
get name():string { return this._name; }
set name(value:string) { this._name = value; }
get readOnlyName():string { return this._name; }
set writeOnlyName(value:string) { this._name = value; }
}