Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
CSharpNotesForProfessionals.pdf
Скачиваний:
57
Добавлен:
20.05.2023
Размер:
6.12 Mб
Скачать

2.When using LINQ to SQL or Linq to Entities you can inspect the SQL that's being generated which is another great way to learn about LINQ.

Section 1.6: Creating a new project using Xamarin Studio

1.Download and install Xamarin Studio Community.

2.Open Xamarin Studio.

3.Click File New Solution.

GoalKicker.com – C# Notes for Professionals

12

4.Click .NET Console Project and choose C#.

5.Click Next to proceed.

GoalKicker.com – C# Notes for Professionals

13

6. Enter the Project Name and

Browse...

for a Location to Save and then click

Create

.

GoalKicker.com – C# Notes for Professionals

14

7. The newly created project will look similar to:

8. This is the code in the Text Editor:

 

GoalKicker.com – C# Notes for Professionals

15

using System;

namespace FirstCsharp

{

public class MainClass

{

public static void Main(string[] args)

{

Console.WriteLine("Hello World!"); Console.ReadLine();

}

}

}

9. To run the code, press F5 or click the Play Button as shown below:

10. Following is the Output:

GoalKicker.com – C# Notes for Professionals

16

GoalKicker.com – C# Notes for Professionals

17