雷姬家的阁楼书架
409 subscribers
5.37K photos
121 videos
35 files
12.1K links
Reki的轻博客, 日常生活流水帐和信息见闻&吐槽.

你将在本频道看到包括且不限于以下话题:
菜菜程序员屎山遨游见闻
猎人 · 特工 · 提督 · 雀士 · 猎魔人 · 开位御主 · 期间限定回归
二五仔毒奶观测者
刀客塔沉船记录
财经新闻胡乱精选
生草新闻摘抄 & 分享
频道主突发恶疾
Download Telegram
雷姬家的阁楼书架
https://devblogs.microsoft.com/dotnet/announcing-dotnet-7-preview-2/
Before
public class Foo
{
public Regex regex = new Regex(@"abc|def", RegexOptions.IgnoreCase);

public bool Bar(string input)
{
bool isMatch = regex.IsMatch(input);
// ..
}
}
After
public partial class Foo // <-- Make the class a partial class
{
[RegexGenerator(@"abc|def", RegexOptions.IgnoreCase)] // <-- Add the RegexGenerator attribute and pass in your pattern and options
public static partial Regex MyRegex(); // <-- Declare the partial method, which will be implemented by the source generator

public bool Bar(string input)
{
bool isMatch = MyRegex().IsMatch(input); // <-- Use the generated engine by invoking the partial method.
// ..
}
}
其实我会以为他这个会做成类似js的那种把成员方法单个提出来
「但日本的转变可能需要更多时间。“那些认为我们需要与俄罗斯保持良好关系以制衡中国的人现在都安静了。” 岩间表示,“但是不管左翼还是右翼,都有形形色色的群体历来是亲俄的,尽管各有不同的原因,而中间能站的空间是很小的。”」
https://www.ftchinese.com/story/001095632
「布热津斯基认为,“只有在美国十分短视地同时对中国和伊朗采取敌视政策时,把俄罗斯与中国和伊朗结合在一起的联盟才能建立起来。”(这一条件至少在特朗普时期实现了)」
https://www.ftchinese.com/story/001095605
「记者报道说,中方发出警告:“中国对南沙群岛及周围海域拥有主权。立即离开避免误判”。美方回应说,他们是享有主权豁免的美国海军飞机,在沿海国领空以外进行合法的军事活动,行使得到国际法保护的权利。」
https://www.bbc.com/zhongwen/simp/world-60846980
「港区人大代表、立法会议员田北辰认为,全民检测有助政府控制复常的时间表,如果政府放弃全民检测将难以掌握疫情发展,情况就犹如“祈祷”,祈求疫情回落,一旦疫情再反弹,到时社会又未能复常。」
https://www.bbc.com/zhongwen/simp/chinese-news-60832976
飞书把回复消息的功能去掉了,wtf
哦草,不是去掉了,是换了个图标