Example #1
0
 public PropertyContainerClass(object owner)
 {
     inner = new PropertyContainer(owner);
 }
Example #2
0
 /// <inheritdoc />
 public void CopyTo(ref PropertyContainer destination)
 {
     inner.CopyTo(ref destination);
 }
Example #3
0
 /// <summary>
 /// Sets the value for a <see cref="PropertyContainer"/> value.
 /// </summary>
 /// <param name="obj">The property container.</param>
 /// <param name="value">The value to set.</param>
 public void SetValue(ref PropertyContainer obj, object value)
 {
     setter(ref obj, value);
 }
Example #4
0
 public PropertyContainerClass()
 {
     inner = new PropertyContainer();
 }
Example #5
0
 /// <summary>
 /// Gets the value from a <see cref="PropertyContainer"/> associated to this getter.
 /// </summary>
 /// <param name="obj">the property container.</param>
 /// <returns>The value stored.</returns>
 public object GetValue(ref PropertyContainer obj)
 {
     return(getter(ref obj));
 }
Example #6
0
 /// <inheritdoc/>
 public override T GetDefaultValueT(ref PropertyContainer obj)
 {
     return(defaultValue);
 }
Example #7
0
 /// <summary>
 /// Gets the default value of an external property, and specify if this default value should be kept.
 /// It could be usefull with properties with default values depending of its container, especially if they are long to generate.
 /// An example would be collision data, which should be generated only once.
 /// </summary>
 /// <param name="obj">Returns a default value as well as a boolean which specifies if the generated default value should be kept.</param>
 /// <returns></returns>
 public abstract object GetDefaultValue(ref PropertyContainer obj);
Example #8
0
 public override T GetDefaultValueT(ref PropertyContainer obj)
 {
     return(callback(ref obj));
 }
Example #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ComponentBase"/> class.
 /// </summary>
 protected DisposeBase()
 {
     collector = new ObjectCollector();
     Tags      = new PropertyContainer(this);
 }