This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InteractionSource | |
{ | |
public static readonly InteractionSource Global = new InteractionSource(); | |
private readonly IList<Func<NewInteraction, IObservable<Unit>>> handlers; | |
public InteractionSource() | |
{ | |
this.handlers = new List<Func<NewInteraction, IObservable<Unit>>>(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ObservableExtensions | |
{ | |
public static IObservable<TSource> RetryWhile<TSource>( | |
this IObservable<TSource> @this, | |
Func<TSource, bool> predicate) | |
{ | |
@this.AssertNotNull(nameof(@this)); | |
predicate.AssertNotNull(nameof(predicate)); | |
return Observable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyViewModel : ReactiveObject | |
{ | |
private readonly ReactiveCommand<object> saveCommand; | |
private readonly ObservableAsPropertyHelper<string> fullName; | |
private readonly ObservableAsPropertyHelper<string> initials; | |
private string firstName; | |
private string lastName; | |
private bool showLastNameFirst; | |
public MyViewModel() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Source : UITableViewSource | |
{ | |
public Source(UITableView tableView) | |
{ | |
// because of a call to ReloadData here... | |
tableView.ReloadData(); | |
} | |
// ...this won't be called... | |
public override nint NumberOfSections(UITableView tableView) |
NewerOlder