Distinction diagram between interactive programming and reactive programming.
See also Somasegar sample using IObserver and IObservable interfaces.
News, tips, tricks about Sharp (C#) Programming Language.
true.Should().Be.True();
false.Should().Be.False();
const string somethig = "something";
somethig.Should().Contain("some");
somethig.Should().Not.Contain("also");
somethig.ToUpperInvariant().Should().Not.Contain("some");
somethig.Should()
.StartWith("so")
.And
.EndWith("ing")
.And
.Contain("meth");
somethig.Should()
.Not.StartWith("ing")
.And
.Not.EndWith("so")
.And
.Not.Contain("body");
var ints = new[] { 1, 2, 3 };
ints.Should().Have.SameSequenceAs(new[] { 1, 2, 3 });
ints.Should().Not.Have.SameSequenceAs(new[] { 3, 2, 1 });
ints.Should().Not.Be.Null();
ints.Should().Not.Be.Empty();
ints.Should()
.Contain(2)
.And
.Not.Contain(4);
(new int[0]).Should().Be.Empty();

public static class ShapeType
{
public static readonly SymbolPool Pool = new SymbolPool();
public static readonly Symbol Circle = Pool.Get("Circle");
public static readonly Symbol Rect = Pool.Get("Rect");
public static readonly Symbol Line = Pool.Get("Line");
public static readonly Symbol Polygon = Pool.Get("Polygon");
}
public static class FractalShape
{
public static readonly SymbolPool Pool = ShapeType.Pool;
public static readonly Symbol Mandelbrot = Pool.Get("XyzCorp.Mandelbrot");
public static readonly Symbol Julia = Pool.Get("XyzCorp.Julia");
public static readonly Symbol Fern = Pool.Get("XyzCorp.Fern");
}
public void DrawShape(Symbol shapeType, PointF[] coordinates)
{
if (shapeType.Pool != ShapeType.Pool)
throw new ArgumentException("Invalid shape type", "shapeType");
...
...
}
.png)
.Add(Expression.Eq("Name", "Smith"))becomes
.Where<Person>(p => p.Name == "Smith")
import clr
clr.AddReference('System.Windows.Forms')
from System.Windows.Forms import Application, Form, Label
form = Form(Text="Hello World Form")
label = Label(Text="Hello World!")
form.Controls.Add(label)
Application.Run(form)
<asp:Repeater ID="repeater" runat="server" ItemTemplate="~/MyUserControl.ascx">
</asp:Repeater>




