This file contains 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 TestingConsoleApp.AsyncEvents; | |
public static class Program | |
{ | |
public static async Task Run() | |
{ | |
var eventHolder = new EventHolder(); | |
eventHolder.OnEvent.OnInvoke += FirstHandler; | |
eventHolder.OnEvent.OnInvoke += SecondHandler; |
This file contains 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
diff --git forkSrcPrefix/src/Reservoom/ViewModels/ReservationListingViewModel.cs forkDstPrefix/src/Reservoom/ViewModels/ReservationListingViewModel.cs | |
index 9f2a60488b0603510f336f7d70b16d3f8a49981c..68f1b035245bc9d39952eb4315fdb6ca102ed47a 100644 | |
--- forkSrcPrefix/src/Reservoom/ViewModels/ReservationListingViewModel.cs | |
+++ forkDstPrefix/src/Reservoom/ViewModels/ReservationListingViewModel.cs | |
@@ -58,13 +58,18 @@ namespace Reservoom.ViewModels | |
public ICommand LoadReservationsCommand { get; } | |
public ICommand MakeReservationCommand { get; } | |
- public ReservationListingViewModel(HotelStore hotelStore, NavigationService<MakeReservationViewModel> makeReservationNavigationService) | |
+ public ICommand EatCakeCommand { get; } |
This file contains 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
// Original source from https://github.com/jpierson/to-markdown-table | |
// LICENSE: MIT | |
public static class LinqMarkdownTableExtensions | |
{ | |
public static string ToMarkdownTable<T>(this IEnumerable<T> source, params string[] order) | |
{ | |
var properties = typeof(T).GetRuntimeProperties(); | |
var fields = typeof(T) | |
.GetRuntimeFields() |
This file contains 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
use std::cmp; | |
#[derive(Debug)] | |
struct Elevator { | |
max_floor: u16, | |
current_floor: u16 | |
} | |
impl Elevator { | |
fn new(max_floors: u16) -> Elevator { |