Click or drag to resize

PropertyCollection Class

This class is the default implementation for IConfiguration. It can be cascaded by setting a DefaultValueSource which is used in case this instance does not contain a specified property.
Inheritance Hierarchy

Namespace:  Mastersign.Bench.PropertyCollections
Assembly:  BenchLib (in BenchLib.dll) Version: 0.22.0.0 (0.22.0.0)
Syntax
public class PropertyCollection : IConfiguration, 
	IPropertyCollection, IPropertySource, IPropertyTarget

The PropertyCollection type exposes the following members.

Constructors
  NameDescription
Public methodPropertyCollection
Initializes a new instance of the PropertyCollection class
Top
Properties
  NameDescription
Public propertyDefaultValueSource
The backup value source for ungrouped properties.
Top
Methods
  NameDescription
Public methodCanGetValue
Checks, whether this object can retrieve the value for the specified property, or not.
Public methodClear
Deletes all properties in this collection.
Public methodContainsValue
Checks, whether this collection contains the specified property.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBooleanValue(String)
Gets the value of a property as a boolean.
Public methodGetBooleanValue(String, Boolean)
Gets the value of a property as a boolean, or a default value if the specified property does not exist or its value can not be properly converted.
Public methodGetHashCode (Inherited from Object.)
Public methodGetInt32Value(String)
Gets the value of a property as an integer.
Public methodGetInt32Value(String, Int32)
Gets the value of a property as an integer, or a default value if the specified property does not exist or its value can not be properly converted.
Public methodGetRawValue
Gets the unresolved and untransformed value of a property in this collection, without looking up the property in DefaultValueSource.
Public methodGetStringListValue(String)
Gets the value of a property as a string array.
Public methodGetStringListValue(String, String)
Gets the value of a property as a string array, or a default value if the specified property does not exist or its value can not be properly converted.
Public methodGetStringValue(String)
Gets the value of a property as a string.
Public methodGetStringValue(String, String)
Gets the value of a property as a string, or a default value if the specified property does not exist or its value can not be properly converted.
Public methodGetType (Inherited from Object.)
Public methodGetValue(String)
Gets the value of the specified property.
Public methodGetValue(String, Object)
Gets the value of the specified property, or a given default value, in case the specified property does not exist.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPropertyNames
Gets the names from all existing properties.
Public methodResetValue
Resets the specified property.
Protected methodResolveValue
This method is a hook for child classes, to implement some kind of value resolution or transformation for ungrouped properties.
Public methodSetValue(String, Boolean)
Sets a boolean value for the specified property.
Public methodSetValue(String, Int32)
Sets an integer value for the specified property.
Public methodSetValue(String, Object)
Sets the value of the specified property. If the property did exist until now, it is created.
Public methodSetValue(String, String)
Sets a string value for the specified property.
Public methodSetValue(String, String)
Sets a string array value for the specified property.
Public methodToString
Returns a string represenation of this property collection.
(Overrides ObjectToString.)
Public methodToString(Boolean)
Returns a string represenation of this property collection.
Top
See Also