Skip to content

Commit 0fe3381

Browse files
authored
[Cog Svcs] Speech SDK C# quickstart compilation fix
Likely just a minor refactoring issue in the course of moving things around -- the `var` keyword generates a compilation error ([CS8370](https://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0825)) when outside of a method, meaning the quickstart code doesn't compile when copied/pasted as intended.
1 parent ba14181 commit 0fe3381

File tree

1 file changed

+2
-2
lines changed
  • articles/cognitive-services/Speech-Service/includes/quickstarts/speech-to-text-basics

1 file changed

+2
-2
lines changed

articles/cognitive-services/Speech-Service/includes/quickstarts/speech-to-text-basics/csharp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Follow these steps to create a new console application and install the Speech SD
4646
4747
class Program
4848
{
49-
static var YourSubscriptionKey = "YourSubscriptionKey";
50-
static var YourServiceRegion = "YourServiceRegion";
49+
static string YourSubscriptionKey = "YourSubscriptionKey";
50+
static string YourServiceRegion = "YourServiceRegion";
5151

5252
static void OutputSpeechRecognitionResult(SpeechRecognitionResult speechRecognitionResult)
5353
{

0 commit comments

Comments
 (0)