Skip to content

fodyarchived/Fielder

Repository files navigation

Abandoned: This project is no longer maintained.

Chat on Gitter NuGet Status

This is an add-in for Fody

Icon

Converts public fields to public properties

Introduction to Fody

This feature means you can exclude the { get; set; } on your properties and use fields instead.

Usage

See also Fody usage.

NuGet installation

Install the Fielder.Fody NuGet package and update the Fody NuGet package:

PM> Install-Package Fody
PM> Install-Package Fielder.Fody

The Install-Package Fody is required since NuGet always defaults to the oldest, and most buggy, version of any dependency.

Add to FodyWeavers.xml

Add <Fielder/> to FodyWeavers.xml

<?xml version="1.0" encoding="utf-8" ?>
<Weavers>
  <Fielder/>
</Weavers>

How does this work

  • For all types find all public instance fields with a capitalised first character
  • Convert all those fields to properties with the same name
  • Find all usages of those fields and point them to the new properties

Icon

Cow designed by Anuar Zhumaev from The Noun Project

About

Abandoned: Converts public fields to public properties

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages