-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C# 9.0 #297
Labels
Comments
そういや、関数ポインターは using System;
class Program
{
unsafe static void Main()
{
delegate*<ref int, void> f = &M;
var x = 1;
f(ref x);
}
static void M(ref int x) { }
} |
This comment has been minimized.
This comment has been minimized.
warning waves も .NET 5 のタイミングで入りそう。 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
init-only プロパティの話 https://ufcpp.net/study/csharp/oo_property.html#init-only に書いた。 |
Closed
残り #347 (unsafe な低需要機能)だけだしこっち閉じちゃうか… |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/ufcpp/UfcppSample/tree/master/Demo/2020/Csharp9_0
issue 建てた当初の話
.NET が年1リリースになるのに合わせるっぽいので、 .NET 5 時点(2020/11)で C# 9.0 が出そう。
(断言まではしてないけどそんな雰囲気でいろいろ作業が進んでる。)
.NET 5 Preview 2 辺り(2020/3)からちらほらと C# 9.0 の実装始まってて、LangVersion preview 指定で試せます。
とりあえずページ作った https://ufcpp.net/study/csharp/cheatsheet/ap_ver9/
.NET 5 Preview 2 時点
https://ufcpp.net/blog/2020/4/begginingcs9/
VS 16.7 p1 時点
x is not T t
は preview 3 で入ったhttps://ufcpp.net/blog/2020/5/cs9net5p4/
ufcpp-live/UfcppLiveAgenda#7
VS 16.7 p2 時点
https://ufcpp.net/blog/2020/6/ExtendingPartialMethod
VS 16.7 p3 時点
https://ufcpp.net/blog/2020/6/cs9vs16_7p3/
data
修飾子はたぶん C# 10..0 行き。VS 16.8 p1 時点
https://ufcpp.net/blog/2020/8/vs168p1/
VS 16.8 p2 時点
https://www.youtube.com/watch?v=Uc04x0eZBBM
C# には大した変更入ってないと思ってたけども…
入ってるかも入ってたT?
(実質、defaultable)The text was updated successfully, but these errors were encountered: