Skip to content

Commit

Permalink
This and that template fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed May 27, 2013
1 parent edc01ef commit 5ab69ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ReactiveUI.Events/Events.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ namespace {{Name}}
namespace {{Name}}.Rx
{
{{#Types}}
public {{Abstract}} class {{Name}}Rx : {{Name}}
public {{Abstract}} partial class {{Name}}Rx : {{Name}}
{
{{#ZeroParameterMethods}}
readonly Subject<Unit> _{{Name}} = new Subject<Unit>();
protected readonly Subject<Unit> _{{Name}} = new Subject<Unit>();
public IObservable<Unit> {{Name}}Obs { get { return _{{Name}}; } }
public override void {{Name}}()
{
Expand All @@ -66,7 +66,7 @@ namespace {{Name}}.Rx

{{/ZeroParameterMethods}}
{{#SingleParameterMethods}}
readonly Subject<{{ParameterType}}> _{{Name}} = new Subject<{{ParameterType}}>();
protected readonly Subject<{{ParameterType}}> _{{Name}} = new Subject<{{ParameterType}}>();
public IObservable<{{ParameterType}}> {{Name}}Obs { get { return _{{Name}}; } }
public override void {{Name}}({{ParameterType}} {{ParameterName}})
{
Expand All @@ -75,7 +75,7 @@ namespace {{Name}}.Rx

{{/SingleParameterMethods}}
{{#MultiParameterMethods}}
readonly Subject<Tuple<{{ParameterTypeList}}>> _{{Name}} = new Subject<Tuple<{{ParameterTypeList}}>>();
protected readonly Subject<Tuple<{{ParameterTypeList}}>> _{{Name}} = new Subject<Tuple<{{ParameterTypeList}}>>();
public IObservable<Tuple<{{ParameterTypeList}}>> {{Name}}Obs { get { return _{{Name}}; } }
public override void {{Name}}({{ParameterList}})
{
Expand Down

0 comments on commit 5ab69ca

Please sign in to comment.