Files
protocol/test/converter/getter-setter/getter-setter.ts
2017-02-08 17:11:04 -08:00

13 lines
262 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; }
}