ImportantPropertyAttribute

Attribute
[AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)] public class ImportantPropertyAttribute : Attribute
Defines attributes to be assigned to properties on IDocumentObject classes.

Constructors

ImportantPropertyAttribute

#
public ImportantPropertyAttribute()
Default constructor for ObjectPropertyAttributes. This will include the property value during serialization.

ImportantPropertyAttribute

#
public ImportantPropertyAttribute(dynamic defaultValue, IEnumerable<string> presetNames, IEnumerable<dynamic> presetValues)
Constructor for ObjectPropertyAttributes. This will include the property value during serialization.
defaultValue (dynamic)Default value. This is used during deserialization if the data cannot be found.
presetNames (IEnumerable<string>)Collection of preset names.
presetValues (IEnumerable<dynamic>)Collection of preset values.

ImportantPropertyAttribute

#
public ImportantPropertyAttribute(dynamic defaultValue)
Constructor for ObjectPropertyAttributes. This will include the property value during serialization.
defaultValue (dynamic)Default value. This is used during deserialization if the data cannot be found.

Properties

DefaultValue

#
public dynamic DefaultValue { get; set; }
Gets the default value for this property.

Presets

#
public SortedList<string, dynamic> Presets { get; }
Gets a collection of presets for this attribute.