TechTalk Genome Wire Object Protocol v4.2

WopDefaultValueAttribute Class

Specifies the default value for the DTO field generated for the property this attribute is bound to.

For a list of all members of this type, see WopDefaultValueAttribute Members.

System.Object
   Attribute
      WopDefaultValueAttribute

[AttributeUsage(Inherited="True", AllowMultiple="False", ValidOn="Property")]
public class WopDefaultValueAttribute : Attribute

Remarks

The WopDefaultValueAttribute specifies the default value for the DTO field generated for the property this attribute is bound to.

The default value will be serialized for a presistent instance if

To reduce the data transfer overhead WOP compiler will tag the generated DTO field with the proper DefaultValueAttribute attribute using the default value specified.

If the default value is not specified, the default instance will be used for value-type fields (0 for int, false for bool, etc.) and a null reference for reference-type fields.

The WopDefaultValueAttribute attribute cannot be used for referential or collection properties. The default value for these properties is always a null reference.

Requirements

Namespace: TechTalk.Genome.Wop

Assembly: TechTalk.Genome.Wop (in TechTalk.Genome.Wop.dll)

Version: 4.2.11.59

Editions: Professional, Community, Evaluation

See Also

WopDefaultValueAttribute Members | TechTalk.Genome.Wop Namespace