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://www.airbnb.co.uk/rooms/34235783?adults=2&check_in=2020-03-07&check_out=2020-03-08&source_impression_id=p3_1582721821_IFe6HjcxbxGd6lat&guests=1&cancellation_policy_id=51 | |
https://www.airbnb.co.uk/rooms/34241031?adults=2&check_in=2020-03-07&check_out=2020-03-08&source_impression_id=p3_1582721138_txJ5FxgU%2BUqqui%2BK&guests=1&cancellation_policy_id=51 | |
https://www.airbnb.co.uk/rooms/16116604?location=Liverpool&adults=2&check_in=2020-03-07&check_out=2020-03-08&source_impression_id=p3_1582720825_Uskv0UZXyzjaSKTU | |
https://www.airbnb.co.uk/rooms/40420011?location=Liverpool&adults=2&check_in=2020-03-07&check_out=2020-03-08&source_impression_id=p3_1582720833_aJndvEFnbkJ1IX5F&guests=1&cancellation_policy_id=51 |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Tester | |
{ | |
static void Main() | |
{ | |
var nameOccurrences = | |
new[] |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Tester | |
{ | |
public static class MyEnumerableExtensions | |
{ | |
public static IEnumerable<IGrouping<TKey, TSource>> MyGroupBy<TSource, TKey>( | |
this IEnumerable<TSource> source, |
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
// In relation to https://stackoverflow.com/a/50925790/3813189 | |
public class WrappedDbConnection : DbConnection | |
{ | |
private readonly DbConnection _conn; | |
public WrappedDbConnection(DbConnection connection) => _conn = connection ?? throw new ArgumentNullException(nameof(connection)); | |
public override string ConnectionString | |
{ | |
get { return _conn.ConnectionString; } | |
set { _conn.ConnectionString = value; } |
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 HomeController : Controller | |
{ | |
public ActionResult Index() | |
{ | |
return View( | |
GetTitleAsync().Result | |
); | |
} | |
private async static Task<string> GetTitleAsync() |
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
using Bridge; | |
namespace BridgeImmutableJsBinding.ImmutableJsBindings | |
{ | |
[Name("Immutable.List")] | |
[Ignore] | |
public static class List | |
{ | |
[Ignore] | |
public extern static ImmutableList<T> Of<T>(params T[] values); |