@@ -85,7 +85,7 @@ protected static PropertyInfo RegisterProperty
(Type objectType, PropertyIn
/// Type of property
/// Property Expression
/// The provided IPropertyInfo object.
- protected static PropertyInfo
RegisterProperty(Expression> propertyLambdaExpression)
+ protected static PropertyInfo RegisterProperty(Expression> propertyLambdaExpression)
{
PropertyInfo reflectedPropertyInfo = Reflect.GetProperty(propertyLambdaExpression);
@@ -116,7 +116,7 @@ protected static PropertyInfo RegisterProperty(ExpressionProperty Expression
/// Friendly description for a property to be used in databinding
/// The provided IPropertyInfo object.
- protected static PropertyInfo RegisterProperty(Expression> propertyLambdaExpression, string friendlyName)
+ protected static PropertyInfo RegisterProperty(Expression> propertyLambdaExpression, string friendlyName)
{
PropertyInfo reflectedPropertyInfo = Reflect.GetProperty(propertyLambdaExpression);
@@ -132,7 +132,7 @@ protected static PropertyInfo RegisterProperty(ExpressionProperty Expression
/// Friendly description for a property to be used in databinding
/// Default Value for the property
- protected static PropertyInfo RegisterProperty(Expression> propertyLambdaExpression, string friendlyName, P defaultValue)
+ protected static PropertyInfo RegisterProperty(Expression> propertyLambdaExpression, string friendlyName, P defaultValue)
{
PropertyInfo reflectedPropertyInfo = Reflect.GetProperty(propertyLambdaExpression);
@@ -384,7 +384,7 @@ protected virtual bool LoadPropertyMarkDirty(IPropertyInfo propertyInfo, object
var method = t.GetMethods(flags).FirstOrDefault(c => c.Name == "LoadPropertyMarkDirty" && c.IsGenericMethod);
var gm = method.MakeGenericMethod(propertyInfo.Type);
var p = new object[] { propertyInfo, newValue };
- return (bool) gm.Invoke(this, p);
+ return (bool)gm.Invoke(this, p);
}
#endregion
@@ -459,28 +459,6 @@ protected override void OnSetChildren(SerializationInfo info, MobileFormatter fo
#endregion
- #region OnDeserialized
-
-
- [System.Runtime.Serialization.OnDeserialized]
- private void OnDeserializedHandler(System.Runtime.Serialization.StreamingContext context)
- {
- OnDeserialized(context);
- }
-
- ///
- /// This method is called on a newly deserialized object
- /// after deserialization is complete.
- ///
- /// Serialization context object.
- [EditorBrowsable(EditorBrowsableState.Advanced)]
- protected virtual void OnDeserialized(System.Runtime.Serialization.StreamingContext context)
- {
- FieldManager?.SetPropertyList(GetType());
- }
-
- #endregion
-
bool IManageProperties.FieldExists(IPropertyInfo property) => FieldManager.FieldExists(property);
List IManageProperties.GetManagedProperties() => FieldManager.GetRegisteredProperties();
object IManageProperties.GetProperty(IPropertyInfo propertyInfo) => throw new NotImplementedException();
diff --git a/Source/Csla/Core/ObservableBindingList.cs b/Source/Csla/Core/ObservableBindingList.cs
index 8671be71ec..41c3ca27e2 100644
--- a/Source/Csla/Core/ObservableBindingList.cs
+++ b/Source/Csla/Core/ObservableBindingList.cs
@@ -6,11 +6,11 @@
// Extends ObservableCollection with behaviors required
//-----------------------------------------------------------------------
-using System.ComponentModel;
-using Csla.Serialization.Mobile;
using System.Collections.Specialized;
+using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Csla.Properties;
+using Csla.Serialization.Mobile;
namespace Csla.Core
{
@@ -77,7 +77,7 @@ public bool AllowRemove
///
public bool RaiseListChangedEvents
{
- get { return _raiseListChangedEvents; }
+ get { return _raiseListChangedEvents; }
set { _raiseListChangedEvents = value; }
}
@@ -359,32 +359,11 @@ protected virtual void OnRemoveEventHooks(T item)
#region ISerializationNotification Members
- ///