Is it possible to use a variable to access 2 variables without naming another variable?

For example, to:

```
LOG.dig.CNLog = 7;
LOG.value.CNLog = 17;

```

I would like to use something like this

```
string a = "dig";
string b = "value";
LOG.[a].CNLog = 7;
LOG.[b].CNLog = 17;

```

It's possible to use this? If yes what is the correct format?

Thanks