@@ -232,7 +232,7 @@ public object ItemAt(NSIndexPath indexPath)
232232 public event PropertyChangingEventHandler PropertyChanging ;
233233
234234 void IReactiveObjectExtension . RaisePropertyChanging ( PropertyChangingEventArgs args )
235- {
235+ {
236236 var handler = PropertyChanging ;
237237 if ( handler != null ) {
238238 handler ( this , args ) ;
@@ -242,7 +242,7 @@ void IReactiveObjectExtension.RaisePropertyChanging(PropertyChangingEventArgs ar
242242 public event PropertyChangedEventHandler PropertyChanged ;
243243
244244 void IReactiveObjectExtension . RaisePropertyChanged ( PropertyChangedEventArgs args )
245- {
245+ {
246246 var handler = PropertyChanged ;
247247 if ( handler != null ) {
248248 handler ( this , args ) ;
@@ -311,8 +311,10 @@ public static IDisposable BindTo<TCell>(
311311 {
312312 var source = new ReactiveTableViewSource ( tableView ) ;
313313 if ( initSource != null ) initSource ( source ) ;
314+
314315 var bind = sectionsObservable . BindTo ( source , x => x . Data ) ;
315316 tableView . Source = source ;
317+
316318 return new CompositeDisposable ( bind , source ) ;
317319 }
318320
@@ -339,15 +341,13 @@ public static IDisposable BindTo<TCell>(
339341 where TCell : UITableViewCell
340342 {
341343 return sourceObservable
342- . Select (
343- src => new [ ]
344- {
345- new TableSectionInformation < TCell > (
346- src ,
347- cellKey ,
348- sizeHint ,
349- initializeCellAction )
350- } )
344+ . Select ( src => new [ ] {
345+ new TableSectionInformation < TCell > (
346+ src ,
347+ cellKey ,
348+ sizeHint ,
349+ initializeCellAction ) ,
350+ } )
351351 . BindTo ( tableView , initSource ) ;
352352 }
353353
@@ -376,6 +376,7 @@ public static IDisposable BindTo<TCell>(
376376 var type = typeof ( TCell ) ;
377377 var cellKey = new NSString ( type . ToString ( ) ) ;
378378 tableView . RegisterClassForCellReuse ( type , new NSString ( cellKey ) ) ;
379+
379380 return sourceObservable
380381 . BindTo ( tableView , cellKey , sizeHint , initializeCellAction , initSource ) ;
381382 }
0 commit comments