3 writes to _defaultVoice
System.Speech (3)
Internal\Synthesis\VoiceSynthesis.cs (3)
1435
_defaultVoice
= null;
1446
_defaultVoice
= GetEngineWithVoice(null, new VoiceInfo(defaultVoice), defaultVoice.TokenName(), defaultVoice.Culture, gender, age, 1, switchContext);
1456
_defaultVoice
= GetEngineWithVoice(null, defaultInfo, null, CultureInfo.CurrentUICulture, VoiceGender.NotSet, VoiceAge.NotSet, 1, switchContext);
6 references to _defaultVoice
System.Speech (6)
Internal\Synthesis\VoiceSynthesis.cs (6)
618
if (_currentVoice ==
_defaultVoice
&& value == null)
1428
[MemberNotNull(nameof(
_defaultVoice
))]
1452
if (
_defaultVoice
== null)
1459
_currentVoice =
_defaultVoice
;
1462
return
_defaultVoice
;
1780
[MemberNotNullWhen(true, nameof(
_defaultVoice
))]