Tutorial by Examples

Some of the simplest kinds of classes are POCOs. // C# public class Person { public string FirstName { get; set; } public string LastName { get; set; } public DateTime Birthday { get; set; } } In F# 3.0, auto-properties similar to C# auto-properties were introduced, // F# typ...
Classes implement an interface to meet the interface's contract. For example, a C# class may implement IDisposable, public class Resource : IDisposable { private MustBeDisposed internalResource; public Resource() { internalResource = new MustBeDisposed(); } ...

Page 1 of 1