FileHelpers - FileHelpers Analyzer

  • Contact / Feedback
  • Introduction
  • Download
  • Quick Start
  • Must Read
  • Examples
    • QuickStart
      • Read Delimited File
      • Write Delimited File
      • Read Fixed File
      • Write Fixed File
      • Read or Write Record by Record
      • Autoproperties
    • Missing Values
      • Handle Missing Values with Nullable
      • Handle Missing Values With FieldNullValue
    • Attributes
      • FieldTrim
      • FieldOrder
      • FixedLengthRecord FixedMode.AllowLessChars
    • Converters
      • Enum Converter
      • Custom Converter
    • Events And Notification
      • INotifyRead Interface
      • INotifyWrite Interface
      • Before/After Read Event Handling
      • Before/After Write Event Handling
    • ErrorHandling
      • ErrorMode.ThrowException
      • ErrorMode.IgnoreAndContinue
      • ErrorMode SaveAndContinue
    • Advanced
      • Dynamic Engine Options
      • Multiple Delimiters
      • Multi Record Processing
      • Smart Format Detector
    • Sorting
      • Sort Big File with Record Class
      • Sort Big File without Record Class 1
      • Sort Big File without Record Class 2
    • MasterDetail
      • Master Detail Custom Selector
      • Master Detail Common Selector
  • Credits
  • Invite us a beer
  • Contribute
  • Source Code
  • Api Docs (Sandcastle)

Best Practices Analyzer and Quick Fixes for the library

This Roslyn Analyzer helps you to use the library in the right way.

For example when you use a non generic engine the analyzer suggest you to use the generic version:

add references
Quick Fixes
  • Recommends to use the generic version when you use an engine with a typeof() in the constructor
  • Suggest to use [FieldHidden] instead of [FieldIgnored] or [FieldNotInFile]
  • Use FileHelpers.Dynamic instead of FileHelpers.RunTime namespace
  • Use IComparable instead of the obsolete IComparableRecord
  • Check that record class contains valid record attributes
  • Check that record class contains any field
  • Convert engine.ReadFile in async version with foreach
Global Install

Install the extension and it will be available for all projects:

Download from Visual Studio Gallery
NuGet Install

Use the NuGet Package Version and it will work only in installed projects

 Install-Package FileHelpers.Analyzer
FileHelpers.Analyzer in NuGet
Copyright © 2020 Devoo - Marcos Meli All rights reserved. Template Design by GeeksLabs