Source/Csla/Core/ManagedObjectBase.cs
/// <summary>
/// Loads a property's managed field with the 
/// supplied value calling PropertyHasChanged 
/// if the value does change.
/// </summary>
/// <param name="propertyInfo">
/// PropertyInfo object containing property metadata.</param>
/// <param name="newValue">
/// The new value for the property.</param>
/// <remarks>
/// No authorization checks occur when this method is called,
/// and no PropertyChanging or PropertyChanged events are raised.
/// Loading values does not cause validation rules to be
/// invoked.
/// </remarks>
Loads a property's managed field with the
supplied value calling PropertyHasChanged
if the value does change.
Loads a property ' s managed field with the supplied value calling PropertyHasChanged if the value does change .
protected virtual void LoadProperty(IPropertyInfo propertyInfo, object newValue)
    {
      var t = this.GetType();
      var method = t.GetRuntimeMethods().FirstOrDefault(c => c.Name == "LoadProperty" && c.IsGenericMethod);
      var gm = method.MakeGenericMethod(propertyInfo.Type);
      var p = new object[] { propertyInfo, newValue };
      gm.Invoke(this, p);
    }
protected virtual void LoadProperty ( IPropertyInfo propertyInfo , object newValue ) { var t = this . GetType ( ) ; var method = t . GetRuntimeMethods ( ) . FirstOrDefault ( c => c . Name == " " && c . IsGenericMethod ) ; var gm = method . MakeGenericMethod ( propertyInfo . Type ) ; var p = new object [ ] { propertyInfo , newValue } ; gm . Invoke ( this , p ) ; }
Loads a property's managed field with the
supplied value calling PropertyHasChanged
if the value does change.
Loads a property ' s managed field with the supplied value calling PropertyHasChanged if the value does change .
propertyInfo
IPropertyInfo
PropertyInfo object containing property metadata.
PropertyInfo object containing property metadata .
newValue
object
The new value for the property.
The new value for the property .
remarks
No authorization checks occur when this method is called,
and no PropertyChanging or PropertyChanged events are raised.
Loading values does not cause validation rules to be
invoked.
No authorization checks occur when this method is called and no PropertyChanging or PropertyChanged events are raised . Loading values does not cause validation rules to be invoked .