Skip to content

Instantly share code, notes, and snippets.

View kinarajv's full-sized avatar
🤚
Hello

Kinara kinarajv

🤚
Hello
View GitHub Profile
@kinarajv
kinarajv / csharp.gitignore
Created August 4, 2023 08:40 — forked from takekazuomi/csharp.gitignore
.gitignore for C#
## 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
@kinarajv
kinarajv / Dynamic
Created May 23, 2023 07:02
Dynamic vs Object
namespace Object
{
static class Program
{
static void Main()
{
int x = 5;
dynamic obj1 = x; // boxing
Console.WriteLine(obj1);
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();