-
-
Save yuta-kaseda/34830bfadadf8fc6d58f6f3cd7a99724 to your computer and use it in GitHub Desktop.
This file contains 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 BossObservableExtension | |
{ | |
public static IObservable<T> Boss(this IObservable<T> source) | |
{ | |
if(source == null) throw new ArgumentNullException("source"); | |
//前のオペレータがBossの時は何もしない重複回避処理 | |
if(source is BossObservable<T>) | |
{ | |
return source; | |
} | |
return new BossObservable<T>(source); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment