c# - 在 C# 方法中作为参数传递的注释?
问题描述
我希望使用以下方法,但这是我第一次遇到列为该方法的第二个参数的内容。应该去那里,是什么意思?
这是该方法来自的 github 存储库: https ://github.com/jguertl/SharePlugin
解决方案
我没有使用过该库,但ShareOptions.cs
似乎有很好的记录:https ://github.com/jguertl/SharePlugin/blob/master/Share/Share.Plugin.Abstractions/ShareOptions.cs
/// <summary>
/// Platform specific Share Options
/// </summary>
public class ShareOptions
{
/// <summary>
/// Android: Gets or sets the title of the app chooser popup.
/// If null (default) the system default title is used.
/// </summary>
public string ChooserTitle { get; set; } = null;
/// <summary>
/// Tizen: Excluded App Types
/// </summary>
public ShareAppControlType ExcludedAppControlTypes { get; set; } = 0;
/// <summary>
/// iOS: Gets or sets the UIActivityTypes that should not be displayed.
/// If null (default) the value of <see cref="Plugin.Share.ShareImplementation.ExcludedUIActivityTypes"/> is used.
/// </summary>
public ShareUIActivityType[] ExcludedUIActivityTypes { get; set; } = null;
/// <summary>
/// iOS only: Gets or sets the popover anchor rectangle.
/// If null (default) the option is not used.
/// </summary>
public ShareRectangle PopoverAnchorRectangle { get; set; } = null;
}
推荐阅读
- angular - 我正在使用引导程序和 css 以角度制作响应式表单,但我无法在其中设置提交按钮的宽度
- javascript - 如何使用 Phaser 3 中的函数绘制精灵?
- ruby-on-rails - 我无法在 Ruby on Rails 的模板中使用 foreach 循环
- scala - 如何用actor模式组织代码
- java - 无法将 HSDIS 与 OpenJDK 11 一起使用
- python - 如何在分组后获得模式的计数?
- azure - 在单个 Azure 存储脚本中为各种环境传递多个参数
- c - 为什么这两种情况下的输出不同
- sed - 使用 SED 从结果中删除以 http 开头的域名
- android - 同时使用 ProGuard 和 R8