/// <summary> /// 判断消息内容是否是纯文本,如果是纯文本,则获取此文本内容。使用 string /// 上报类型时比查询两次属性快;array 上报类型时与先查询 <see cref="IsPlaintext" /// /> 属性,再查询 <see cref="Text"/> 属性没有区别。 /// </summary> /// <param name="text">如果是纯文本,则为文本内容;否则为 <c>null</c>。</param> /// <returns>是否为纯文本。</returns> public bool TryGetPlainText(out string text) { text = IsPlaintext ? (_isString ? Raw.AfterReceive() : Text) : null; return(!(text is null)); }