コード例 #1
0
        public void CanBind()
        {
            TestStruct testStruct;

            testStruct.idx   = 668;
            testStruct.value = 4672;

            StaticContainer.Bind <TestEmptyClass>(DEFAULT_EMPTY_CLASS);
            StaticContainer.Bind <TestEmptyClass>(CUSTOM_EMPTY_CLASS, CUSTOM_ID);
            StaticContainer.Bind <TestEmptyClass>(PROTOTYPE_EMPTY_CLASS, InstantiationType.PROTOTYPE, PROTOTYPE_ID);
            StaticContainer.Bind <TestStruct>(testStruct, CUSTOM_ID);
            StaticContainer.Bind <TestEmptyClass>(EMPTY_CHILD_CLASS, SUBCLASS_ID);
        }