I'm assuming C#/.net carries the same risk, and C/C++ does not.
I'm assuming C#/.net carries the same risk, and C/C++ does not.
What specific risk(s) are you thinking about?
Disclaimer: Microsoft employee, Nazgûl
[1] Bunch of companies tried selling compilers with 'drink your milk shake' licensing terms in the 80's. Developer resistance, Microsoft and Borland killed them off.
C# and Java are significantly more forgiving and for most use cases are perfectly adequate. Performance is a reasonable concern, but not the primary driver of language choice.
If you look at the sort of Java code some people churn out in an enterprise environment you'd be glad they weren't using C++ which has significantly more sharp edges. Throwing random exceptions isn't as bad as periodically segfaulting for no apparent reason.
Brillo was supposed to have key Android frameworks made available in C++, as explained at set of Linux Embedded talks.
Instead what happened was they brought in the Android Java frameworks and renamed it to Android Things.