Skip to content

Instantly share code, notes, and snippets.

View syedharoonmca's full-sized avatar

syedharoonmca

View GitHub Profile
using System.Text.Json;
using Azure.Messaging.ServiceBus;
using Microsoft.AspNetCore.Mvc;
namespace TodoApi3.Controllers;
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
using System.Text.Json;
using Azure.Messaging.ServiceBus;
using Microsoft.AspNetCore.Mvc;
namespace TodoApi3.Controllers;
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
using System;
using System.Collections.Generic;
using System.Linq;
namespace LINQDemo
{
class Program
{
static void Main(string[] args)
{
List<int> intList = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
using System.Collections.Generic;
namespace LINQDemo
{
public class Employee
{
public int ID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public int Salary { get; set; }
public static List<Employee> GetEmployees()
using System;
using System.Collections.Generic;
using System.Linq;
namespace LINQDemo1
{
class Program
{
static void Main(string[] args)
{
List<Student> studentList = new List<Student>()
using System;
using System.Collections.Generic;
using System.Linq;
namespace LINQDemo
{
class Program
{
static void Main(string[] args)
{
List<Student> studentList = new List<Student>()
namespace System.Collections.Generic
{
...public interface IEnumerable<out T>:IEnumerable
{
...IEnumerable GetEnumerator();
}
}
namespace System.Collections
{
...public interface IEnumerable
{
...IEnumerator GetEnumerator();
}
}
public static IEnemurable<TSource> Where<TSource>(this IEnemurable<TSource> source,
List<int> intList =new List<int>{1,2,3,4,5,6,7,8,9,10};
IEnumeralbe<int> EvenNumberList =intList.Where(n=> n%2 == 0);