Sisters.WudiLib icon indicating copy to clipboard operation
Sisters.WudiLib copied to clipboard

文档问题

Open Cyl18 opened this issue 3 years ago • 1 comments

https://github.com/int-and-his-friends/Sisters.WudiLib/blob/a903c39659b52eeb3fa857c41866ce6018c9cddc/Sisters.WudiLib/Posts/Post.Message.cs#L28 这里说不建议使用本属性判断类型 又说请使用 is 运算符进行判断 但是没有说该怎么判断 希望能补全文档 (我猜测是想要 sth is Message.PrivateType?)

Cyl18 avatar Nov 07 '21 16:11 Cyl18

是这么用的

Sisters.WudiLib.Posts.Message someMsgCtx = ...
if (someMsgCtx is Sisters.WudiLib.Posts.GroupMessage g)
{
    // g.GroupId...
}

b11p avatar Nov 08 '21 04:11 b11p