public void ReplaceClassToGenerate(My.Namespace.ClassToGenerate newValue)
    {
        var index     = TestComponentsLookup.ClassToGenerate;
        var component = CreateComponent <ClassToGenerateComponent>(index);

        component.value = newValue;
        ReplaceComponent(index, component);
    }
    public void ReplaceClassToGenerate(My.Namespace.ClassToGenerate newValue)
    {
        var index     = Test2ComponentsLookup.ClassToGenerate;
        var component = (ClassToGenerateComponent)CreateComponent(index, typeof(ClassToGenerateComponent));

        component.value = newValue;
        ReplaceComponent(index, component);
    }