表达式值检测 SmartReactives

码农软件 · 软件分类 · 常用工具包 · 2019-08-14 15:56:51

软件介绍

SmartReactives 是 Rx.NET 的扩展,用来检测一个表达式的值是否有变化,通过 IObservable 接口来检测。简单的示例代码:

var input = new ReactiveVariable<int>(1);
var square = new ReactiveExpression<int>(() => input.Value * input.Value);
square.Subscribe(getSquare => Console.WriteLine("square = " + getSquare())); //Prints 'square = 1'

input.Value = 2; //Prints 'square = 4'
input.Value = 3; //Prints 'square = 9'
SmartReactives 灵感来自于 Scala.Rx


本文地址:https://codercto.com/soft/d/12356.html

Effective Java: Second Edition

Effective Java: Second Edition

Joshua Bloch / Addison-Wesley / 2008-05-28 / USD 54.99

Written for the working Java developer, Joshua Bloch's Effective Java Programming Language Guide provides a truly useful set of over 50 best practices and tips for writing better Java code. With plent......一起来看看 《Effective Java: Second Edition》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器