相关疑难解决方法(0)

检查属性是否具有属性

给定类中的属性,使用属性 - 确定它是否包含给定属性的最快方法是什么?例如:

    [IsNotNullable]
    [IsPK]
    [IsIdentity]
    [SequenceNameAttribute("Id")]
    public Int32 Id
    {
        get
        {
            return _Id;
        }
        set
        {
            _Id = value;
        }
    }
Run Code Online (Sandbox Code Playgroud)

确定例如它具有"IsIdentity"属性的最快方法是什么?

c# performance

152
推荐指数
7
解决办法
10万
查看次数

标签 统计

c# ×1

performance ×1