Class PropertyBagUtility
Helper methods to query an IPropertyBag<TContainer>.
Inheritance
System.Object
PropertyBagUtility
Namespace: Unity.Properties
Syntax
public static class PropertyBagUtility
Methods
HasProperty<TContainer>(IPropertyBag<TContainer>, String)
Checks if the given IPropertyBag<TContainer> has any property with the given name.
Declaration
public static bool HasProperty<TContainer>(this IPropertyBag<TContainer> propertyBag, string name)
Parameters
Type | Name | Description |
---|---|---|
IPropertyBag<TContainer> | propertyBag | |
System.String | name |
Returns
Type | Description |
---|---|
System.Boolean |
Type Parameters
Name | Description |
---|---|
TContainer |