您的位置:首页 > 编程语言 > C#

C# 注释

2017-04-16 00:10 20 查看
  <summary>注释

形参注释 (int  a,double  b)

<typeparam name="T1">   指的  int  double 的注释


 <param name="arg1">指的   a  b  的注释




/// <summary>

/// Encapsulates a method that takes nine parameters and does not return a value.

/// </summary>

    /// <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>

    /// <typeparam name="T9">The type of the ninth parameter of the method that this delegate encapsulates.</typeparam>

    /// <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>

    /// <param name="arg9">The ninth parameter of the method that this delegate encapsulates.</param>

    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1005:AvoidExcessiveParametersOnGenericTypes")]

    public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9);

  
/// <summary>

/// Encapsulates a method that has nine parameters and returns a value of the type specified by the TResult parameter.

/// </summary>

    /// <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>

    /// <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>

    /// <param name="arg9">The ninth parameter of the method that this delegate encapsulates.</param>

    /// <returns>The return value of the method that this delegate encapsulates.</returns>

    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1005:AvoidExcessiveParametersOnGenericTypes")]
    public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9);

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  注释 C#7.0 C#