Open.Core.ModelBase.Get C# (CSharp) Method

Get() protected method

Retrieves a property value from the backing store.
protected Get ( string propertyName, object defaultValue ) : object
propertyName string The name of the property.
defaultValue object The default value to provide (if the value does not exist).
return object
        protected object Get(string propertyName, object defaultValue)
        {
            return PropertyBag.ContainsKey(propertyName) ? PropertyBag[propertyName] : defaultValue;
        }