New to site?


Lost password? (X)

Already have an account?


(X)

Presents

#CSHARPCON20

The C# Corner Annual Conference 2020 is a three-day annual event for software professionals and developers.

3
DAYS
72
SPEAKERS
65
SESSIONS

Magnus Mårtensson
Microsoft Regional Director, Azure MVP, CEO Loftysoft

Avirag Jain
Director & CTO R Systems

Mahesh Chand
Founder C# Corner, CEO Mindcracker

Chris Gali
CEO & Co-Founder Graphite

Subinder Khurana
Chief Architect StoryProcess, Founder NASSCOM DeepTech Club

Bryan Rishforth
Investor, Chairman Graphite

Bryn Everson
Director Biz Dev Graphite

Raj Tiwari
Digital Transformation Leader, Futurist and Visionary

Joseph Guadagno
Microsoft MVP, Lead Quicken Loans

Nikita Sachdev
Entrepreneur, Blockchain Enthusiast & Advisor, Social Media Influencer

Doug Wagner
COO & Founder Adapt Technical Group

Ritesh Modi
Architect, Senior Evangelist, Cloud Architect

Crystal Wenrick
Director Communications Mindcracker

Allen O’Neill
Microsoft MVP, Consulting Engineer/Architect

Praveen Kumar
CEO MCN Solutions

Chris Love
Founder Love2Dev, Microsoft MVP, Author

Sanjay Vyas
Microsoft Regional Director, Microsoft MVP, Founder & CEO SkillLabs Technologies

Veena Sarda
Deep Learning Consultant, Author

Sekhar Srinivasan
C# Corner MVP, Microsoft Certified Trainer, Pluralsight Author

Lalit Bansal
Founder & CEO - EIY SYS

Navdeep Garg
CEO Revinfotech

Prakash Tripathi
Tech Manager/Leader, Microsoft MVP, Blogger

Bhavna Jain
Breakthrough Consultant

Naveen Sharma
Enterprise Architect, Leadership Coach, Author

Vidya Vrat Agarwal
Principal Architect, Microsoft MVP, Author

Sheetal Agarwal
Founder Clownselors, Medical Clown, Trainer

Abhishek Kant
Founder GTM Catalyst

Vishnu Saran
Founder & CEO VoiceQube

Sandeep Soni
Founder & CEO Deccansoft, Microsoft Certified Trainer

Parveen Malik
AVP InfoSec & Vulnerability Management, Information Security Expert

Nitin Pandit
Microsoft MVP, Developer Evangelist, Author

Niloshima Srivastava
C# Corner MVP, Tech Architect, Trainer, Blogger

Bala Chirtsabesan
Senior Software Engineer at Microsoft, Author

Manoj Mittal
Sr. Technical Architect, C# Corner MVP, Author

Chandni Di
Co-Founder Voice of Slum

Vithal Wadje
Technical Lead, Microsoft MVP, Author

Shivam Ahuja
Founder SkillCircle, Business Mentor

Chervine Bhiwoo
Solution Architect, Microsoft MVP, Author

Saurabh Jain
Vice President Paytm, Founder Fun2Do Labs, Author

Vinay Solanki
Head IoT at Lenovo, Founder IoT-NCR

Anshu kumari
Founder Blockchainkids, Inventor, Trainer

Amit Singal
CEO Startup Buddy

Dev Pratap
Co-Founder & CEO Voice of Slum

Amey Vartak
Technology Consultant, Full Stack Developer, C# Corner MVP, Author

Viswanatha Swamy
Principal Software Engineer, C# Corner MVP, Author

Sanket Verma
Research Engineer @ Ballistics (Forensics) and Chair, PyData Delhi

Sourabh Somani
Lead Developer, Microsoft MVP, Author

Abhishek Mishra
Software Architect, C# Corner MVP, Author

Siddharth Vaghasia
Technical Consultant, C# Corner MVP, Blogger

Bassam Alugili
Senior Software Specialist, Database Expert

S Ravi Kumar
Solution Architect, C# Corner MVP, Author

Sundaram Subramanian
Full Stack Developer, C# Corner MVP, Speaker

Deepesh Somani
Solution Architect, Microsoft MVP, Author

Debasis Saha
Technical Project Manager, C# Corner MVP, Blogger, Author

Vipul Jain
Software Architect, C# Corner MVP, Author

Akshay Patel
Technical Architect, Microsoft Certified Trainer, C# Corner MVP, Author

Stephen Simon
RPA Developer, Evangelist, Author

Vivek Sharma
Founder Kingster636, AR/VR Specialist

Jeetendra Gund
Technical Lead, C# Corner MVP, Author

Sujal Beniwal
AI Enthusiast, Student

M Viknaraj
Microsoft MVP, Azure Architect, Author

Prasham Sabadra
Software Architect, C# Corner MVP, Trainer, Author

Aakash Maurya
Senior Developer, C# Corner MVP, Speaker

Ankit Sharma
Senior Software Engineer, C# Corner MVP, Author

Mangesh Gaherwar
Team Lead, C# Corner MVP, Author

Viral Jain
Technical Consultant, C# Corner MVP, Author

Bhasker Das
Solution Architect, Evangelist

Manish Dwivedi
Associate Project Manager

Ck Nitin
Programmer, Author

Rohit Gupta
Technical Trainer, Author

Manish Tewatia
Full-stack Marketer, UX Designer

Bhavya Gaur
Technical Illustrator

Rohit Tomar
SEO/SMO Expert

Web Track

Cloud & Data Track

Dev Track

8am-9am

Registration & Breakfast

9am-10am

Future of Desktop Apps with JS (ElectronJs)

Nitin Pandit

Building Serverless Microservices Using Microsoft Azure

Vithal Wadje

Innovating RPA: A Robot for Every Person

Stephen Simon

10am-11am

Managing Cloud Storage Accounts using Logic Apps

Viknaraj Manogararajah

Data visualization using Python

Sekhar Srinivasan

Going Cross platform with AR Foundation

Vivek Sharma

11am-12pm

Keynote

12pm-1pm

Managing your Azure dependencies in ASP.NET Core apps using VS

Bala Chirtsabesan

Securing Applications on Intelligent Azure

Abhishek Mishra

Getting started with Blazor the Framework of Future

S Ravi Kumar

1pm-2pm

Lunch

2pm-2:45pm

Build Progressive Web Apps using Angular 9

Debasis Saha

Build and deploy to any platform using Azure DevOps

Chervine Bhiwoo

Deep Dive in Azure Service Bus

Akshay Patel

2:45pm-3:45pm

Build a Native Mobile Application using React Native and JavaScript

Joseph Guadagno

Making sense of Web Job, Web Job SDK and Functions in Azure

Prakash Tripathi

CloudFront Distribution in AWS

Viral Jain

3:45pm-4pm

Tea Break

4pm-4:30pm

Introduction to PowerBI

Aakash Maurya

Build Advanced SPFx solutions with React and Graph API

Siddharth Vaghasia

Build Business Intelligence Analyst (BIA) Skills

Sundaram Subramanian

4:30pm-5pm

Deep dive of Power Platform – AI BUILDER

Prasham Sabadra

Panel 1

What's new in SharePoint development

Vipul Jain

5pm-5:30pm

Build a SSO (Single Sign On) based Native JavaScript application with Microsoft Identity within 10 minutes

Manoj Mittal

Panel 2

Applications and working of AI

Veena Sarda

5:30pm-6pm

Deploying serverless API's with .Net core 3.0 on AWS & Azure

Amey Vartak

Panel 3

Blockchain with .NET Core (Ark)

Anshu Kumari

6pm-6:30pm

Closing Note & Prize Distribution

Dev Track

Cloud Track

Architecture Track

Emerging Tech Track

8am-9am

Registration & Breakfast

9am-10am

Creating Full-Stack Web Apps Using Server-Side Blazor

Ankit Sharma

Real time face recognition with MS Cognitive Services

Niloshima Srivastava

Building Scalable APIs with GraphQL

Jeetendra Gund

Future of development with AI and Blockchain

Navdeep Garg

10am-11am

Debugging Tips and Tricks with Visual Studio 2019

Joseph Guadagno

Azure Containers

Abhishek Kant

Enterprise Architecture

Naveen Sharma

Bot Framework - learn it fast and look like a boss!

Allen O’Neill

11am-12:30pm

Keynote

12:30pm-1:30pm

.Net Core & C# 8 Performance

David McCarter

Working with Azure kubernetes services

Ritesh Modi

Becoming an Architect

Vidyavrat Agarwal

Why Techies Need to Learn Product Management

Saurabh Jain

1:30pm-2:30pm

Lunch

2:30pm-3:30pm

Build a rules engine in .Net Core

Sanjay Vyas

Building CI and CD Pipeline using Azure DevOps

Sandeep Soni

Entity Framework Core - Tips and Tricks, Performance Optimization, and Tuning

Bassam Alugili

Hacking your way into Data Science

Sanket Verma

3:30-4:15pm

Speed up your .Net Core Website

Sourabh Somani

Azure

Magnus Mårtensson

Demystifying Open Distro for Elasticsearch

Suman Debnath

Future of Data

Shivam Ahuja

4:15pm-4:30pm

Tea Break

4:30pm-5:15pm

gRPC with C# and .Net Core

Mangesh Gaherwar

Panel 1

Essentials of Cloud security

Parveen Malik

Power platform and Dynamics 365

Deepesh Somani

5:15pm-6pm

Microservices - the gRPC Way

Viswanatha Swamy

Panel 2

Reserved

Reserved

6pm-6:30pm

Closing Note & Prize Distribution

How Span and Memory Reduce Allocations in C#

Using Span<T> and Memory<T> to reduce allocations starts with a useful distinction: a window over existing data is usually cheaper than copying that data. Hot paths such as parsing, UTF-8 conversion, compression, protocol handling and request processing can otherwise produce short-lived arrays that increase garbage-collection work. The aim is not zero allocation everywhere, but removing avoidable intermediate objects from code that runs frequently.

Span<T> is a lightweight view over contiguous memory and is a ref struct, so the runtime does not box it or allow it to escape through ordinary object references. It can slice an array without creating another array, point at unmanaged memory, or refer to a fixed-size stack buffer. Memory<T> has a broader lifetime: it is a regular struct that can be held in fields, passed through asynchronous methods and used in APIs that must outlive a single synchronous scope.

The savings appear when an API accepts span or memory input or output. A call such as Encoding.UTF8.GetBytes(payload) returns a new byte array; an overload that writes into caller-provided storage can reuse a buffer instead. Spans do not make the original string free, and they cannot remove allocations created elsewhere, so the worthwhile targets are intermediate conversions, parser tokens, protocol frames and temporary copies.

The three-day programme for the 2020 C# Corner conference brings together speakers working across C#, Azure, data, DevOps and AI, making it a useful setting for discussing runtime efficiency. Australian engineering teams often use blunt shorthand such as “heap churn” during stand-ups when repeated temporary objects become a concern. That concern is practical rather than cosmetic: managed code still needs predictable latency and economical cloud consumption.

Why allocation reduction still matters

For applications hosted in Microsoft Azure, the Australia East and Australia Southeast regions in Sydney and Melbourne bring compute close to many users, yet an allocation still costs CPU, memory bandwidth and garbage-collector attention on the server. A request path that creates several temporary arrays can consume more resources than its business logic. Removing those copies reduces pressure without changing the external behaviour of an API.

Australian organisations in mining, logistics, banking and health technology often run a mixture of cloud services, on-premises systems and remote-site equipment. For this market, predictable cloud invoices and reliable hybrid operation matter as much as peak throughput. Efficient parsing and buffering can cut server demand, while local processing can also reduce traffic across intermittent links to mines, warehouses and regional offices.

Understanding the core types

A span always describes a bounded region of the same element type. Slicing changes only its starting position and length; it does not copy the elements. ReadOnlySpan<T> adds a read-only contract and is especially useful for text and read-only binary data. A slice of a larger buffer remains valid only while its backing storage remains valid, so lifetime rules are part of the design rather than an afterthought.

Memory<T> offers similar slicing with a lifetime suitable for stored state and asynchronous workflows. A Memory<byte> may wrap an array segment, unmanaged memory or a buffer owned by a memory manager. Creating a slice normally copies only the small Memory<T> value, while the bytes it describes can remain in a pooled or long-lived buffer. This makes it a bridge between efficient views and APIs that require awaitable operations.

Neither type automatically makes code allocation-free. Memory<T>.ToArray() creates a new array, and constructing Memory<T> over a new byte array retains that initial allocation. The benefit comes from reusing existing storage and passing a view to APIs that can consume it directly. ReadOnlyMemory<T> can expose .Span for a scoped synchronous loop, giving developers read-only access without exposing a mutable buffer.

Using spans safely in synchronous code

Consider a routine that counts digits in an identifier. Accepting a ReadOnlySpan<char> lets the caller provide a view of an existing string without allocating a character array:

private static int CountDigits(ReadOnlySpan<char> text)
{
    int count = 0;

    foreach (char character in text)
    {
        if (character is >= '0' and <= '9')
        {
            count++;
        }
    }

    return count;
}

CountDigits(orderId.AsSpan()) reuses the string’s existing characters and creates no intermediate array. For short-lived unmanaged buffers, stackalloc can provide stack storage, but a stack buffer should be small, bounded and created once rather than inside a hot loop. As a ref struct, Span<T> cannot be captured by a lambda, stored in an ordinary field, boxed, or used across an await or yield boundary; those restrictions prevent a view from outliving its backing memory.

Preserving efficiency across asynchronous boundaries

An asynchronous method cannot retain a Span<T> across an await or yield because the compiler may move execution to another thread and the stack frame will no longer own the view safely. Attempting to capture one in an async state machine is therefore a compile-time error, not a subtle performance problem. Code that crosses this boundary needs storage with an explicit, longer lifetime.

Memory<T> solves that lifetime problem because it is an ordinary value that can be held in a field or carried through a state machine. After await LoadMetadataAsync().ConfigureAwait(false), a method can iterate over ReadOnlyMemory<char>.Span without copying the characters into a new array. ConfigureAwait(false) can reduce unnecessary context capture, but it does not alter the allocation rules for spans. The developer must still ensure that the array, native allocation or memory manager behind the memory remains valid and is disposed by the correct owner.

Pooling buffers without hidden costs

Array pooling is the usual answer when a buffer must survive an asynchronous operation or handle traffic larger than a sensible stack allocation. ArrayPool<T>.Shared rents arrays by size bucket, and the Memory<T> or Span<T> view exposes the useful portion:

byte[] rented = ArrayPool<byte>.Shared.Rent(4096);

try
{
    int read = await stream.ReadAsync(
        rented.AsMemory(),
        cancellationToken);

    ProcessPayload(rented.AsSpan(0, read));
}
finally
{
    ArrayPool<byte>.Shared.Return(rented, clearArray: true);
}

The finally block returns the buffer even when reading or processing fails. A rented array may be larger than requested, so use the actual byte count rather than assuming its length. Clearing a buffer before returning it costs time, but it is prudent for credentials, tokens or personal data; for non-sensitive content, the default no-clear path is usually faster. Pooling can remove repeated steady-state allocations after the pool is warm, yet it does not justify retaining buffers indefinitely or hiding ownership rules.

Applying the techniques to practical workloads

Modern .NET APIs increasingly provide span- and memory-based overloads. Encoding.UTF8.GetBytes can write into a supplied span, Stream.Read and Stream.Write can consume byte views, and PipeReader and PipeWriter support buffer-oriented pipelines. Moving one conversion or I/O boundary at a time makes the change measurable and keeps the rest of the application understandable.

In ASP.NET Core services, request parsing, logging and response generation are repeated enough for temporary buffers to matter. A span-based UTF-8 encoder can avoid a fresh byte array for every message, while a pooled buffer can serve larger payloads. LINQ chains, closures and string interpolation can still allocate, and replacing every string with a span can make an API harder to maintain, so profiling should identify the expensive path first.

This matters for Australian software products that must run across Perth, Brisbane, Adelaide and regional operations with different connectivity profiles. Processing a compact binary frame locally can reduce bytes sent over a constrained satellite or mobile link, while cloud-side services benefit from lower memory pressure in regions near Sydney and Melbourne. A team might say it will “have a crack” at reducing allocations; the useful result is a measured improvement in allocations per request, not a wholesale rewrite.

Choosing between spans and memory

Choose Span<T> for short, synchronous work over a known, non-escaping buffer. Choose Memory<T> when a view must cross an asynchronous boundary, live in a field or be handed to another component. Read-only variants suit inputs, while mutable variants suit buffers that the current component owns and fills. Both can describe the same underlying bytes without copying them, and Memory<T>.Span provides a scoped span when synchronous access is required.

Measurement keeps this choice honest. Benchmark the representative workload with tools such as BenchmarkDotNet, record allocated bytes per operation and inspect garbage collections under realistic concurrency. The fastest-looking code can still retain or copy data unnecessarily, while a clearer implementation may remove the only meaningful allocation. The following comparison captures the practical boundary between the two types.

Concern Span<T> Memory<T>
Best suited to Short, synchronous operations Asynchronous, stored or shared operations
Underlying storage Array, stackalloc or native memory Array, pooled buffer, native memory or memory manager
Managed allocation The span itself creates none The memory value creates none, though its backing buffer may allocate
Async support Cannot cross an await or yield boundary Can be retained across asynchronous boundaries
Storage rules Can only be held by compatible ref struct fields Can be stored in classes, collections and ordinary fields
Read-only option ReadOnlySpan<T> ReadOnlyMemory<T>
Main risk Escaping or using a view after its backing memory ends Incorrect disposal or retention of the backing resource

The Leela Ambience Convention Hotel

1, CBD, Maharaj Surajmal Road, Near Yamuna Sports Complex, Delhi, 110032

KNOW MORE

GENERAL QUERIES


Manish Tewatia

+91-9718-431-042

TICKET QUERIES


Atul Gupta

+91-9910-125-804