コード例 #1
0
        private static void Main(string[] args)
        {
            Write("Expected Output :");
            WriteLine(Environment.NewLine);

            var inventoryManager = new InventoryManager();
            var itemList         = inventoryManager.UpdateInventory(InventoryRepository.Items);

            OutputOperation.OutputInventoryUpdateResults(itemList);

            WriteLine(Environment.NewLine);
            Write("Press Enter to continue!");
            ReadKey();
        }
コード例 #2
0
ファイル: ShaderCode.cs プロジェクト: zigaosolin/SharpMedia
        /// <summary>
        /// Creates ShaderCode using stage.
        /// </summary>
        /// <param name="stage">The stage.</param>
        public ShaderCode(BindingStage dagStage)
        {
            stage     = dagStage;
            immutable = false;

            input = new InputOperation(this);
            if (dagStage == BindingStage.PixelShader)
            {
                output = new PixelOutputOperation(this);
            }
            else
            {
                output = new OutputOperation(this);
            }
        }