示例#1
0
        public void TestGetCustomAttributesOfTypeIncomplete()
        {
            FieldBuilder field = _tb.DefineField("name",
                                                 typeof(string), FieldAttributes.Public);

            field.GetCustomAttributes(typeof(ObsoleteAttribute), false);
        }
示例#2
0
        public void TestGetCustomAttributesComplete()
        {
            FieldBuilder field = _tb.DefineField("name",
                                                 typeof(string), FieldAttributes.Public);

            _tb.CreateType();
            field.GetCustomAttributes(false);
        }