CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.PropertyInfo< T > Class Template Reference

Maintains metadata about a property. More...

Inheritance diagram for Csla.PropertyInfo< T >:
Csla.Core.IPropertyInfo Csla.Core.IMemberInfo

Public Member Functions

 PropertyInfo (string name, bool? isSerializable=null)
 Creates a new instance of this class.
 PropertyInfo (string name, RelationshipTypes relationship, bool? isSerializable=null)
 Creates a new instance of this class.
 PropertyInfo (string name, T defaultValue, bool? isSerializable=null)
 Creates a new instance of this class.
 PropertyInfo (string name, string? friendlyName, bool? isSerializable=null)
 Creates a new instance of this class.
 PropertyInfo (string name, string? friendlyName, Type containingType, bool? isSerializable=null)
 Creates a new instance of this class.
 PropertyInfo (string name, string? friendlyName, Type containingType, T defaultValue, bool? isSerializable=null)
 Creates a new instance of this class.
 PropertyInfo (string name, string? friendlyName, Type containingType, RelationshipTypes relationship, bool? isSerializable=null)
 Creates a new instance of this class.
 PropertyInfo (string name, string? friendlyName, Type? containingType, T? defaultValue, RelationshipTypes relationship, bool? isSerializable=null)
 Creates a new instance of this class.
System.Reflection.? PropertyInfo GetPropertyInfo ()
 Gets the System.Reflection.PropertyInfo object representing the property.

Static Public Member Functions

static ? T DataBindingFriendlyDefault ()
 Creates the CSLA Data Binding Friendly default for the given type T.

Protected Member Functions

virtual Core.FieldManager.IFieldData NewFieldData (string name)
 Create and return a new IFieldData object to store an instance value for this property.

Properties

string Name [get]
 Gets the property name value.
Type Type [get]
 Gets the type of the property.
virtual string FriendlyName [get]
 Gets the friendly display name for the property.
virtual bool IsSerializable [get]
 Gets or sets a value indicating whether this property is serializable.
virtual ? T DefaultValue [get]
 Gets the default initial value for the property.
RelationshipTypes RelationshipType = RelationshipTypes.None [get]
 Gets the relationship between the declaring object and the object reference in the property.
bool IsChild [get]
 Gets a value indicating whether this property references a child in the object graph.

Detailed Description

Maintains metadata about a property.

Template Parameters
TData type of the property.

Member Function Documentation

◆ DataBindingFriendlyDefault()

? T Csla.PropertyInfo< T >.DataBindingFriendlyDefault ( )
inlinestatic

Creates the CSLA Data Binding Friendly default for the given type T.

Returns
Default value for T which is compatible with Data Binding

◆ GetPropertyInfo()

System.Reflection.? PropertyInfo Csla.PropertyInfo< T >.GetPropertyInfo ( )
inline

Gets the System.Reflection.PropertyInfo object representing the property.

Implements Csla.Core.IPropertyInfo.

◆ NewFieldData()

virtual Core.FieldManager.IFieldData Csla.PropertyInfo< T >.NewFieldData ( string name)
inlineprotectedvirtual

Create and return a new IFieldData object to store an instance value for this property.

Parameters
nameProperty name.
Exceptions
ArgumentExceptionname is null, string.Empty or consists only of white spaces.

Implements Csla.Core.IPropertyInfo.

◆ PropertyInfo() [1/8]

Csla.PropertyInfo< T >.PropertyInfo ( string name,
bool? isSerializable = null )
inline

Creates a new instance of this class.

Parameters
nameName of the property.
isSerializableIf property is serializable
Exceptions
ArgumentNullExceptionname is null.

◆ PropertyInfo() [2/8]

Csla.PropertyInfo< T >.PropertyInfo ( string name,
RelationshipTypes relationship,
bool? isSerializable = null )
inline

Creates a new instance of this class.

Parameters
nameName of the property.
relationshipRelationship with referenced object.
isSerializableIf property is serializable
Exceptions
ArgumentNullExceptionname is null.

◆ PropertyInfo() [3/8]

Csla.PropertyInfo< T >.PropertyInfo ( string name,
string? friendlyName,
bool? isSerializable = null )
inline

Creates a new instance of this class.

Parameters
nameName of the property.
friendlyNameFriendly display name for the property.
isSerializableIf property is serializable
Exceptions
ArgumentNullExceptionname is null.

◆ PropertyInfo() [4/8]

Csla.PropertyInfo< T >.PropertyInfo ( string name,
string? friendlyName,
Type containingType,
bool? isSerializable = null )
inline

Creates a new instance of this class.

Parameters
nameName of the property.
friendlyNameFriendly display name for the property.
containingTypeFactory to provide display name from attributes.
isSerializableIf property is serializable
Exceptions
ArgumentNullExceptionname is null.

◆ PropertyInfo() [5/8]

Csla.PropertyInfo< T >.PropertyInfo ( string name,
string? friendlyName,
Type containingType,
RelationshipTypes relationship,
bool? isSerializable = null )
inline

Creates a new instance of this class.

Parameters
nameName of the property.
friendlyNameFriendly display name for the property.
containingTypeFactory to provide display name from attributes.
relationshipRelationship with referenced object.
isSerializableIf property is serializable
Exceptions
ArgumentNullExceptionname is null.

◆ PropertyInfo() [6/8]

Csla.PropertyInfo< T >.PropertyInfo ( string name,
string? friendlyName,
Type containingType,
T defaultValue,
bool? isSerializable = null )
inline

Creates a new instance of this class.

Parameters
nameName of the property.
friendlyNameFriendly display name for the property.
containingTypeFactory to provide display name from attributes.
defaultValueDefault value for the property.
isSerializableIf property is serializable
Exceptions
ArgumentNullExceptionname is null.

◆ PropertyInfo() [7/8]

Csla.PropertyInfo< T >.PropertyInfo ( string name,
string? friendlyName,
Type? containingType,
T? defaultValue,
RelationshipTypes relationship,
bool? isSerializable = null )
inline

Creates a new instance of this class.

Parameters
nameName of the property.
friendlyNameFriendly display name for the property.
containingTypeFactory to provide display name from attributes.
defaultValueDefault value for the property.
relationshipRelationship with referenced object.
isSerializableIf property is serializable
Exceptions
ArgumentNullExceptionname is null.

◆ PropertyInfo() [8/8]

Csla.PropertyInfo< T >.PropertyInfo ( string name,
T defaultValue,
bool? isSerializable = null )
inline

Creates a new instance of this class.

Parameters
nameName of the property.
defaultValueDefault value for the property.
isSerializableIf property is serializable
Exceptions
ArgumentNullExceptionname is null.

Property Documentation

◆ DefaultValue

virtual ? T Csla.PropertyInfo< T >.DefaultValue
get

Gets the default initial value for the property.

This value is used to initialize the property's value, and is returned from a property get if the user is not authorized to read the property.

Implements Csla.Core.IPropertyInfo.

◆ FriendlyName

virtual string Csla.PropertyInfo< T >.FriendlyName
get

Gets the friendly display name for the property.

If no friendly name was provided, the property name itself is returned as a result.

Implements Csla.Core.IPropertyInfo.

◆ IsChild

bool Csla.PropertyInfo< T >.IsChild
get

Gets a value indicating whether this property references a child in the object graph.

Implements Csla.Core.IPropertyInfo.

◆ IsSerializable

virtual bool Csla.PropertyInfo< T >.IsSerializable
get

Gets or sets a value indicating whether this property is serializable.

If the property is marked with the DoNotSerializeAttribute, it is considered not serializable. Otherwise, it is considered serializable.

Implements Csla.Core.IPropertyInfo.

◆ Name

string Csla.PropertyInfo< T >.Name
get

Gets the property name value.

Implements Csla.Core.IMemberInfo.

◆ RelationshipType

RelationshipTypes Csla.PropertyInfo< T >.RelationshipType = RelationshipTypes.None
get

Gets the relationship between the declaring object and the object reference in the property.

Implements Csla.Core.IPropertyInfo.

◆ Type

Type Csla.PropertyInfo< T >.Type
get

Gets the type of the property.

Implements Csla.Core.IPropertyInfo.


The documentation for this class was generated from the following file: