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
public class ItemClickAction : DependencyObject, IAction | |
{ | |
public ICommand Command | |
{ | |
get { return (ICommand)GetValue(CommandProperty); } | |
set { SetValue(CommandProperty, value); } | |
} | |
public static readonly DependencyProperty CommandProperty = | |
DependencyProperty.Register(nameof(Command), typeof(ICommand), typeof(ItemClickAction), new PropertyMetadata(null)); |
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
public class DateRange : IEquatable<DateRange> | |
{ | |
public DateTime Start { get; } | |
public DateTime End { get; } | |
public double Days { get; } | |
public DateRange(DateTime start, DateTime end) | |
{ |
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
// https://stackoverflow.com/a/3670089/1933104 | |
public static bool ScrambledEquals<T>(this ICollection<T> self, ICollection<T> other) | |
{ | |
if (self == null) | |
{ | |
throw new ArgumentNullException(nameof(self)); | |
} | |
if (other == null) |
NewerOlder