AD
Size: a a a
AD
AH
let a = 123 in a
на два подвыраженияlet a = 123
- является значением типа Binding<'a>%% in a
- является инфиксным оператором с типом Binding<'a> -> 'aAH
AD
AD
AD
AD
IC
IC
xunit
?IC
private const string ExistsKey = "Exist";
public static IEnumerable<object?[]> TryGetValueData()
{
yield return new object[] { "anyKey", "1", false, 0 };
yield return new object?[] { ExistsKey, null, true, 0 };
yield return new object[] { ExistsKey, "1", true, 1 };
yield return new object[] { ExistsKey, "true", true, true };
yield return new object[] { ExistsKey, "2020-10-12", true, new DateTime(2020, 10, 12) };
}
[Theory]
[MemberData(nameof(TryGetValueData))]
public void TryGetValue<T>(string key, string? value, bool expected, T expectedValue)
where
T : struct
IC