Source/Csla/Core/ManagedObjectBase.cs
/// <summary>
/// Indicates that the specified property belongs
/// to the business object type.
/// </summary>
/// <typeparam name="T">Type of Target</typeparam>
/// <typeparam name="P">Type of property</typeparam>
/// <param name="propertyLambdaExpression">Property Expression</param>
/// <param name="friendlyName">Friendly description for a property to be used in databinding</param>
/// <param name="defaultValue">Default Value for the property</param>
/// <returns></returns>
Indicates that the specified property belongs
to the business object type.
Indicates that the specified property belongs to the business object type .
protected static PropertyInfo<P> RegisterProperty<T,P>(Expression<Func<T, object>> propertyLambdaExpression, string friendlyName, P defaultValue)
    {
      PropertyInfo reflectedPropertyInfo = Reflect<T>.GetProperty(propertyLambdaExpression);
      return RegisterProperty(typeof(T), Csla.Core.FieldManager.PropertyInfoFactory.Factory.Create<P>(typeof(T), reflectedPropertyInfo.Name, friendlyName, defaultValue));
    }
protected static PropertyInfo < P > RegisterProperty < T , P > ( Expression < Func < T , object > > propertyLambdaExpression , string friendlyName , P defaultValue ) { PropertyInfo reflectedPropertyInfo = Reflect < T > . GetProperty ( propertyLambdaExpression ) ; return RegisterProperty ( typeof ( T ) , Csla . Core . FieldManager . PropertyInfoFactory . Factory . Create < P > ( typeof ( T ) , reflectedPropertyInfo . Name , friendlyName , defaultValue ) ) ; }
Indicates that the specified property belongs
to the business object type.
Indicates that the specified property belongs to the business object type .
None
propertyLambdaExpression
Expression<Func<T, object>>
None
friendlyName
string
Friendly description for a property to be used in databinding
Friendly description for a property to be used in databinding
defaultValue
P
Default Value for the property
Default Value for the property
typeparam
Type of Target
Type of Target
typeparam
Type of property
Type of property