Property Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

An object representing the name and value of a property.

public class Property
Inheritance:
System.Object → Property

Constructors

Property() Initializes a new instance of the Property class.
Property(String) Initializes a new instance of the Property class.
Property(String, Object) Initializes a new instance of the Property class.

Properties

Name Gets or sets the name of the field.
Value Gets or sets the value of the field.

Methods

ToString()

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Description(Property) Gets the localized description text of the property.
DisplayName(Property) Gets the localized display name of the property.
Group(Property) Gets the name used to group properties in the UI.
Prompt(Property) Gets the localized watermark for prompts in the UI.
Template(Property) Gets the name of the template used to display or edit the property.
TemplateHint(Property) Gets the PresentationLayer property from the System.ComponentModel.DataAnnotations.UIHintAttribute.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.