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

Private field serialisation with System.Text.Json

How to Serialize Private Fields with System.Text.Json involves deciding which state belongs in an external contract rather than simply flipping a hidden switch. By default, System.Text.Json writes public properties through their public getters. Private fields are excluded, and JsonSerializerOptions.IncludeFields does not make them eligible merely because reflection can see them. That option extends the member set to public fields; it is not a request to serialise every non-public field.

The distinction appears throughout the web, cloud and data topics in the C# Corner Annual Conference 2020 programme. A record might keep an internal correlation key, normalised account number or cached label in private state while an existing integration expects that value in JSON. The serialiser therefore sits at a boundary between an application object and a consumer that may be another service, a partner or a stored payload.

Australian teams commonly use the spelling “serialise” in design discussions, although the .NET API names remain Serialize and Deserialize. Examples from Sydney health integrations, Melbourne fintech platforms and Brisbane logistics systems show the same need, even though their domains differ. The right approach depends on whether the payload is a one-way projection, must round-trip and has to remain stable for consumers outside the organisation.

What the serializer actually sees

System.Text.Json builds a contract from accessible members. A public property with a public getter can be written to JSON, while a property with only a private getter is normally skipped. Fields are treated separately: public fields need IncludeFields = true, and private fields remain outside the contract. Naming policies, null handling and number handling apply only after a member has been selected.

Keeping private state out is often good design. A private cache or working counter may be derived, transient or irrelevant to another system. Publishing it can enlarge the payload, disclose operational details and make an internal refactoring look like a breaking API change. JSON property names and shape are observable contracts, even when the CLR type behind them is internal.

This option enables public fields, not private ones:

var options = new JsonSerializerOptions
{
    IncludeFields = true
};

Built-in ways to expose private state

The lowest-maintenance approach is often to expose exactly the required value through a public property. This keeps System.Text.Json on its well-supported path and leaves the field private.

public sealed class PaymentSummary
{
    private string _legacyReference = "";

    public string Reference => _legacyReference;
}

Where the member itself must stay non-public, attributes can help when runtime support exists. On .NET 8 and later, [JsonInclude] can opt eligible non-public members into serialisation and deserialisation. Earlier versions commonly supported it on public properties with non-public accessors, so a private field that compiles against an older target may still be ignored. Check the actual runtime, not just the language version.

public sealed class PaymentEnvelope
{
    [JsonInclude]
    [JsonPropertyName("reference")]
    private string _reference = "";
}

Another stable pattern is a DTO or projection type. Copy selected private values into public properties, then serialise the DTO. This adds mapping code, but it gives an API team one explicit place to control names, types and omissions. It also stops an internal rename from silently altering a wire contract.

A converter for deliberate private-field output

A custom converter is the dependable option when a private field genuinely belongs in the payload and no public projection is acceptable. The converter can select fields explicitly, apply a stable JSON name and control nulls without making every private field visible to the default serialiser.

The sample uses [JsonInclude] as an explicit marker and caches the discovered fields. It writes only; deserialisation is rejected rather than left ambiguous.

using System.Reflection;
using System.Text.Json;
using System.Text.Json.Serialization;

public sealed class PrivateFieldConverter<T> : JsonConverter<T>
    where T : class, new()
{
    private static readonly FieldInfo[] Fields = typeof(T)
        .GetFields(BindingFlags.Instance |
                   BindingFlags.NonPublic |
                   BindingFlags.DeclaredOnly)
        .Where(f => f.IsDefined(typeof(JsonIncludeAttribute)))
        .ToArray();

    public override void Write(
        Utf8JsonWriter writer, T value, JsonSerializerOptions options)
    {
        writer.WriteStartObject();

        foreach (FieldInfo field in Fields)
        {
            writer.WritePropertyName(GetName(field, options));
            JsonSerializer.Serialize(
                writer, field.GetValue(value), field.FieldType, options);
        }

        writer.WriteEndObject();
    }

    public override T? Read(
        ref Utf8JsonReader reader,
        Type typeToConvert,
        JsonSerializerOptions options) =>
        throw new NotSupportedException(
            "This converter writes private fields.");

    private static string GetName(
        FieldInfo field, JsonSerializerOptions options)
    {
        string name = field
            .GetCustomAttribute<JsonPropertyNameAttribute>()?.Name
            ?? field.Name;

        return options.PropertyNamingPolicy?.ConvertName(name) ?? name;
    }
}

[JsonConverter(typeof(PrivateFieldConverter<PaymentRecord>))]
public sealed class PaymentRecord
{
    [JsonInclude]
    [JsonPropertyName("reference")]
    private string _reference = "";

    [JsonInclude]
    private int _schemaVersion;
}

This converter defines the entire payload, so public properties on the model are not included automatically. That limitation is useful when the converter is attached to a dedicated wire type, but surprising on a large domain object. For deserialisation, implement Read with JsonDocument and assign mutable fields through the cached FieldInfo values. Readonly fields and objects without a suitable constructor need a separate creation strategy.

Runtime, contract and performance considerations

Version behaviour needs an explicit test. Reflection-based serialisation, source-generated metadata and Native AOT do not all expose members in the same way. JsonInclude support expanded in .NET 8, while source generators have their own configuration and accessibility rules. The runtime IncludeFields option is ignored by source-generated serializers, so generator-specific settings may be required. Test the exact target framework and publishing pipeline.

Names are another contract concern. A field called _reference is not automatically a property called reference; underscores, casing and acronym conventions differ between teams. An explicit [JsonPropertyName] prevents accidental changes when someone renames the CLR field. Treat that JSON name as a published interface and keep old aliases during migration if external consumers already depend on it.

Performance is usually less important than predictability, but reflection still has costs. Cached FieldInfo arrays avoid repeated member discovery. Avoid converting every object to a dictionary just to reach one field, since that can allocate and lose type-specific metadata. For high-volume pipelines, a source-generated DTO or a compiled custom converter can provide stronger startup and trimming behaviour.

Australian infrastructure choices make payload stability especially valuable. Azure has Australian East and Australian Southeast regions, while AWS operates Sydney and Melbourne regions; a local deployment choice still does not settle privacy, residency or compliance obligations by itself. Many Australian teams also serve long-lived enterprise, government or partner integrations alongside shorter-lived internal tools. Stable property names and documented omissions reduce support work when an old consumer remains in the market for years.

A practical choice for Australian teams

Choose based on the consumer and the required lifetime of the payload. A short-lived diagnostic message can justify a small projection, whereas a partner API needs controlled naming, versioning and tests.

Approach Private-state control Round trip Best fit Main caution
Public property wrapper Explicit value If a setter exists Small models and stable APIs Adds an access surface
DTO or projection Explicit mapping Yes Versioned service contracts Requires mapping code
IncludeFields Public fields only Where writable Legacy public-field models Does not reach private fields
[JsonInclude] Eligible non-public members Runtime-dependent Small, framework-supported opt-ins Version and generator constraints
Custom converter Precise field selection Custom implementation Deliberate wire models More code to maintain

For most service boundaries, a DTO remains the easiest option to review and support. Reach for [JsonInclude] when the member-level change is genuinely small and the target runtime is known. A converter earns its complexity when field selection, naming or write-only behaviour cannot be expressed through the default contract.

Use these recommendations when choosing an implementation:

  • Keep external JSON in a DTO or projection whenever domain fields change frequently.
  • Use IncludeFields only when public fields are intentionally part of the contract.
  • Verify [JsonInclude] against the exact .NET target, source generator and trimming settings.
  • Reserve custom converters for dedicated wire models with explicit ownership.
  • Add golden JSON and round-trip tests, and treat an exposed field rename as a breaking change.

Every property in a published payload should have a deliberate owner, a stable name and a documented reason for existing.

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