/// <summary> /// Handler called every time a block state is created in the controller. /// </summary> /// <param name="blockState">The block state created.</param> public virtual void OnBlockStateCreated(IReadOnlyBlockState blockState) { Debug.Assert(blockState != null); Debug.Assert(!BlockStateViewTable.ContainsKey(blockState)); IReadOnlyBlockStateView BlockStateView = CreateBlockStateView(blockState); Debug.Assert(BlockStateView.ToString() != null); // For code coverage. BlockStateViewTable.Add(blockState, BlockStateView); }
bool IDictionary <IReadOnlyBlockState, IReadOnlyBlockStateView> .TryGetValue(IReadOnlyBlockState key, out IReadOnlyBlockStateView value) { bool Result = TryGetValue((IFrameBlockState)key, out IFrameBlockStateView Value); value = Value; return(Result); }
void IDictionary <IReadOnlyBlockState, IReadOnlyBlockStateView> .Add(IReadOnlyBlockState key, IReadOnlyBlockStateView value) { Add((IFrameBlockState)key, (IFrameBlockStateView)value); }