Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

85 Commits

Repository files navigation

AutoDeconstruct

A library that automatically adds support for object deconstruction in C#.

Getting Started

First, reference the AutoDeconstructNuGet package.

Then, add [AutoDeconstuct] to a type so you can deconstruct it:

usingAutoDeconstruct;[AutoDeconstruct]publicsealedclassPerson{publicuintAge{get;set;}publicrequiredstringName{get;set;}}varperson=newPerson{Age=22,Name="Joe"};var(age,name)=person;

Read the overview document for further details.

Prerequisites

The Rocks package targets .NET Standard 2.0 for host flexibility.

About

A library that automatically adds support for object deconstruction in C#.

Resources

Stars

42 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages