To Jost .NWDP Site

Intro Notes

Introduction to Visual Studio and C#

Review Questions

  1. What do these acronymns mean?

  2. Define these terms:

  3. What are some flags that are used with the C# command line compiler.

  4. How does the .Net VES know where to find the DLL files referenced in the manifest.

  5. How does the CLR know which version of a DLL to choose in the GAC out of multiple versions?
    Ans: The most recent version is chosen. If you prefer a specific version, include this .csproj file reference as a ItemGroup element:

  6. What is the difference between a class and an object?

  7. What are properties, methods, and events for a class?

  8. Given these classes, give some possible properties, methods, and events: BasketballPlayer, Windows-style Button.

 

Examples

BlankForm  Greeter1  ClickCounter1  ClickCounter2  Greeter2  Controls  Sound  Localization  DocumentationFormatter  CurrentDate  Unicode  Multiclass  Multiproject  RealEstate

Example files: intro.zip, intro.txt

 

The Visual Studio IDE

A Console Application

Two Windows Applications

An ASP.Net Application

Some Features of Visual Studio and C#.NET

 

Some .Net File Extensions

Extension Significance
.sln VS Solution File
.suo Solution User Options File
.csproj C# Project File
.vbproj VB Project File
.cpproj C++ Project File
.cs C# Source Code File
.vb VB Source Code File
.cpp C++ Source Code File
.resx Resource File
.pdb Program Debug File
.exe Executable
.dll Dynamic Link Library
.xaml Extensible Application Markup Language
.baml Binary Application Markup Language
 

.Net System Datatypes

CLR Bytes C# Visual Basic
System.Byte 1 byte Byte
System.SByte 1 sbyte SByte
System.Int16 2 short Short
System.Int32 4 int Integer
System.Int64 8 long Long
System.UInt16 2 ushort UShort
System.UInt32 4 uint UInteger
System.UInt64 8 ulong ULong
System.Single 4 float Single
System.Double 8 double Double
System.Object 4 byte address object Object
System.Char 2 char Char
System.String 4 byte address string String
System.Decimal 16 decimal Decimal
System.Boolean 1 bool Boolean

Examples

The Practice Project