CascadingTypeParameterAttribute 类

定义

将泛型类型参数表示为级联。 这允许泛型类型推理在同样具有同名类型参数的后代上自动使用此类型参数值。

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
public sealed class CascadingTypeParameterAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
type CascadingTypeParameterAttribute = class
    inherit Attribute
Public NotInheritable Class CascadingTypeParameterAttribute
Inherits Attribute
继承
CascadingTypeParameterAttribute
属性

构造函数

CascadingTypeParameterAttribute(String)

构造 的 CascadingTypeParameterAttribute实例。

属性

Name

获取类型参数的名称。

适用于