This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
# User-specific files | |
*.suo | |
*.user | |
*.sln.docstates | |
# Build results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Object | |
{ | |
static class Program | |
{ | |
static void Main() | |
{ | |
int x = 5; | |
dynamic obj1 = x; // boxing | |
Console.WriteLine(obj1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main() | |
{ | |
PatientQueue pq = new PatientQueue(); | |
pq.Enqueue(new Patient("John", 1)); | |
pq.Enqueue(new Patient("Mary", 2)); | |
pq.Enqueue(new Patient("Peter", 3)); | |
List<Patient> pqe = pq.ToList(); |