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 TupleDeconstruction; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| // When deconstructing you can use _ to discard unwanted variables. | |
| var (Status, _, Reason) = WorkflowProgress.GetPaymentProgress("PMT_01J17CQ41K2Y0D5C3D8VG8"); | |
| // Status: ProvisionallyAccepted |
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 DataMask; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| var creditCard = new CreditCard() | |
| { | |
| NameOnCard = "Muhammad Ahmod", | |
| Pan = "1234 5678 6787 2332", |
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 ObjectIntitializer; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| // Initialize objects by using an object initializer. | |
| var currency = new Currency { Id = 128, Code = "ZAR", Name = "Rand", Country = "South Africa" }; | |
| // Id = 128, Code = ZAR, Name = South Africa, Country = South Africa |
NewerOlder