Azavea.Open.DAO.AbstractDaLayer.AddCoercibleType C# (CSharp) Method

AddCoercibleType() public method

A method to add a coercion delegate for a type, without exposing the dictionary.
public AddCoercibleType ( Type t, TypeCoercionDelegate coercionDelegate ) : void
t System.Type The type to coerce.
coercionDelegate TypeCoercionDelegate How to coerce it.
return void
        public void AddCoercibleType(Type t, TypeCoercionDelegate coercionDelegate)
        {
            lock (this)
            {
                if (_coerceableTypes == null)
                {
                    _coerceableTypes = new Dictionary<Type, TypeCoercionDelegate>();
                }
                _coerceableTypes.Add(t, coercionDelegate);
            }
        }