C# 10以降では以下の 2 つが同じ挙動とは限らないという話をした。
public string Foo(string a, string b)
{
var text = $"A: {a}, B {b}";
return Baz(text);
}
public string Bar(string a, string b)
{
return Baz($"A: {a}, B {b}");
}
TransformStream に渡す Transformer について transform メソッドだけは throw した際の挙動が明記されていないな。他のメソッドは Throwing an exception is treated the same as returning a rejected promise. と書いてある。
https://t.co/mWGEfflTMW