hi. I'm trying to access nested properties of a ne...
# dotnet
w
hi. I'm trying to access nested properties of a newly created azure redis cache (from a variable of type
Output<Redis>
). The compiler wanted me to do this:
Copy code
redisCache.Apply(x => x.AccessKeys.Apply(z => z.PrimaryKey))
but that resulted in a null reference exception. I tried to follow the guidance about "lifting nested values", but couldn't find my way to anything that would compile. What am I missing here?