ExtenderShouldSerializeValue() private method

private ExtenderShouldSerializeValue ( IExtenderProvider provider, object component ) : bool
provider IExtenderProvider
component object
return bool
コード例 #1
0
 /// <summary>
 ///     Determines if this property should be persisted.  A property is
 ///     to be persisted if it is marked as persistable through a
 ///     PersistableAttribute, and if the property contains something other
 ///     than the default value.  Note, however, that this method will
 ///     return true for design time properties as well, so callers
 ///     should also check to see if a property is design time only before
 ///     persisting to runtime storage.
 /// </summary>
 public override bool ShouldSerializeValue(object comp)
 {
     return(_extenderInfo.ExtenderShouldSerializeValue(_provider, comp));
 }