Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 38509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:43:09+00:00 2026-05-10T14:43:09+00:00

Which parsers are available for parsing C# code? I’m looking for a C# parser

  • 0

Which parsers are available for parsing C# code?

I’m looking for a C# parser that can be used in C# and give me access to line and file informations about each artefact of the analysed code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:43:10+00:00Added an answer on May 10, 2026 at 2:43 pm

    Works on source code:

    • CSParser: From C# 1.0 to 2.0, open-source
    • Metaspec C# Parser: From C# 1.0 to 3.0, commercial product (about 5000$)
    • #recognize!: From C# 1.0 to 3.0, commercial product (about 900€) (answer by SharpRecognize)
    • SharpDevelop Parser (answer by Akselsson)
    • NRefactory: From C# 1.0 to 4.0 (+async), open-source, parser used in SharpDevelop. Includes semantic analysis.
    • C# Parser and CodeDOM: A complete C# 4.0 Parser, already support the C# 5.0 async feature. Commercial product (49$ to 299$) (answer by Ken Beckett)
    • Microsoft Roslyn CTP: Compiler as a service.

    Works on assembly:

    • System.Reflection
    • Microsoft Common Compiler Infrastructure: From C# 1.0 to 3.0, Microsoft Public License. Used by Fxcop and Spec#
    • Mono.Cecil: From C# 1.0 to 3.0, open-source

    The problem with assembly ‘parsing’ is that we have less informations about line and file (the informations is based on .pdb file, and Pdb contains lines informations only for methods)

    I personnaly recommend Mono.Cecil and NRefactory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Generally I use lxml for my HTML parsing needs, but that isn't available on
How do hand-written recursive descent parsers (which are inevitably LL(k)) compare to generated LALR
I have to develop an application which parses a log file and sends specific
I need a CSVParser class file A Class File which parses csv and returns
Is there a parser/library which is able to read an HTML document into a
I'm writing a construct in PHP where a parser determins which function to call
I am trying to make 2 variables available throughout my site. I am parsing
I have a function which parses one string into two strings. In C# I
I need to build a function which parses the domain from a URL. So,
I have written a Ruby application which parses lots of data from sources in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.