DtoAttribute Class |
Namespace: Jeneva
The DtoAttribute type exposes the following members.
Name | Description | |
---|---|---|
DtoAttribute |
Creates instance of the DtoAttribute class
| |
DtoAttribute(Byte) |
Creates an instance of the DtoAttribute class
| |
DtoAttribute(Byte, Byte) |
Creates instance of the DtoAttribute class
|
Name | Description | |
---|---|---|
Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) | |
Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Dynamic |
Gets or sets value that indicates if nested serialization level is resolved dynamically.
Nested level can be dynamic if you are trying to serialize parent object using some level higher than the level indicated in the DtoAttribute.Value.
In this case the nested level is calculated at runtime based on difference between the required level and the DtoAttribute.Value.
This difference is added to the DtoAttribute.Nested serialization level. This behaviour works only if Dynamic property is true.
| |
IsCustomType |
Must be set to true if current property is Custom Type.
| |
Nested |
If the current property represents nested domain object, then this field defines
the Level of serialization applied to the child properties of the domain object
| |
Parser |
You can provide your own parser. Creating custom parser is simple.
You have to implement the IParser interface.
If parsing is impossible due to wrong format custom parser must throw some Exception
| |
TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) | |
Value |
Level of serialization applied to this property
|