O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

PropertyAttributes

Synopsis

These attributes can be placed on properties. The important ones that you will encounter are None and HasDefault, which specify either the absence of attributes or that there is a default.

public enum PropertyAttributes {
   None = 0x00000000,
   SpecialName = 0x00000200,
   RTSpecialName = 0x00000400,
   HasDefault = 0x00001000,
   Reserved2 = 0x00002000,
   Reserved3 = 0x00004000,
   Reserved4 = 0x00008000,
   ReservedMask = 0x0000F400
}

Hierarchy

System.ObjectSystem.ValueTypeSystem.Enum(System.IComparable, System.IFormattable, System.IConvertible)PropertyAttributes

Returned By

PropertyInfo.Attributes

Passed To

System.Reflection.Emit.TypeBuilder.DefineProperty()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required