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
| using System; | |
| using System.Collections.Generic; | |
| using System.Runtime.Serialization; | |
| using System.ServiceModel; | |
| namespace ProcessingService | |
| { | |
| [DataContract(Namespace = "urn:just-applications:nventree:batch-v1.0")] | |
| public class Argument | |
| { |
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
| namespace Processing.Services | |
| open System.Runtime.Serialization | |
| open System.Collections.Generic | |
| open System.ServiceModel | |
| [<DataContract(Namespace="urn:just-applications:nventree:batch-v1.0")>] | |
| type Argument() = | |
| let mutable key : string = "" | |
| let mutable arg_value : string = "" |
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 InvoiceFactory | |
| { | |
| public static Invoice CreateByOrder(Order order) | |
| { | |
| #region Contract | |
| Contract.Requires(order != null); | |
| Contract.Requires(order.PaidDate.HasValue); | |
| Contract.Requires(order.Customer != null); |
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
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| TestEvents test = new TestEvents(); | |
| test.SomethingOccured += (s, e) => Console.WriteLine("Test1"); | |
| test.SomethingOccured += (s, e) => Console.WriteLine("Test2"); | |
| test.SomethingOccured -= (s, e) => Console.WriteLine("Test1"); |
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
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| TestEvents test = new TestEvents(); | |
| var ff = new EventHandler<EventArgs>((s, e) => Console.WriteLine("Test")); | |
| test.SomethingOccured += ff; | |
| test.SomethingOccured += ff; |
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
| module Bank | |
| // Model | |
| type Amount = decimal | |
| type Balance = { | |
| CurrentAmount: Amount | |
| } | |
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
| using System; | |
| using System.Collections.Generic; | |
| namespace TryRx | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Order.Paid.Subscribe(_ => Console.WriteLine("Paid")); |
NewerOlder