attibute in the class

Giganews Newsgroups
Subject: attibute in the class
Posted by:  c676228 (betty@newsgroup.nospam)
Date: Fri, 17 Apr 2009

Hi all,

I have looking at the code delivered by our vendor.
There is an attribute defined from our Vendor's component.
It appears in the code like this:
[DBIgnore()]
            public int? contentAreaID = null;

So I assume that this field will be ignored when the data is inserted into
the database. Then I looked into the source code in the Reflector.

When I disassemble it, it looks like this

public class DBIgnore : Attribute
{
    // Methods
    public DBIgnore();
}

Expand Methods
and when I clicked on expand methods. It just has the following:
public class DBIgnore : Attribute
{
}

So I don't really know what is implemented and what the attribute exactly
means.

Thanks,

--
Betty

Replies