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 9147685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:03:21+00:00 2026-06-17T11:03:21+00:00

One of the things that I find hard to keep consistent is the use

  • 0

One of the things that I find hard to keep consistent is the use of int vs Int32 and bool vs Boolean etcetera.

I find it simpler to identify all types by their case and color syntax highlighting…

List<int>

vs

List<Int32>

The latter is cleaner and upholds consistency. A lot of code is littered with both and I’m looking for a refactoring tool to change them all.

Are there any tools that allow me to change all C# built-in types to their .NET Framework types?

  • 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. Editorial Team
    Editorial Team
    2026-06-17T11:03:22+00:00Added an answer on June 17, 2026 at 11:03 am

    I eventually wrote a macro to do this

    Option Strict Off
    Option Explicit Off
    Imports System
    Imports EnvDTE
    Imports EnvDTE80
    Imports EnvDTE90
    Imports EnvDTE90a
    Imports EnvDTE100
    Imports System.Diagnostics
    
    Public Module ReplaceCSharpBuiltInTypesWithTheirFrameworkTypes
        Sub ReplaceCSharpBuiltInTypesWithTheirFrameworkTypes()
            Dim dictionary As New Collections.Generic.Dictionary(Of String, String)
            dictionary.Add("bool", "Boolean")
            dictionary.Add("byte", "Byte")
            dictionary.Add("sbyte", "SByte")
            dictionary.Add("char", "Char")
            dictionary.Add("decimal", "Decimal")
            dictionary.Add("double", "Double")
            dictionary.Add("float", "Single")
            dictionary.Add("int", "Int32")
            dictionary.Add("uint", "UInt32")
            dictionary.Add("long", "Int64")
            dictionary.Add("ulong", "UInt64")
            dictionary.Add("object", "Object")
            dictionary.Add("short", "Int16")
            dictionary.Add("ushort", "UInt16")
            dictionary.Add("string", "String")
            For Each key In dictionary.Keys
                DTE.Find.FindWhat = key
                DTE.Find.ReplaceWith = dictionary(key)
                DTE.Find.Target = vsFindTarget.vsFindTargetCurrentDocument
                DTE.Find.MatchCase = True
                DTE.Find.MatchWholeWord = True
                DTE.Find.MatchInHiddenText = False
                DTE.Find.PatternSyntax = vsFindPatternSyntax.vsFindPatternSyntaxLiteral
                DTE.Find.ResultsLocation = vsFindResultsLocation.vsFindResultsNone
                DTE.Find.Action = vsFindAction.vsFindActionReplaceAll
                DTE.Find.Execute()
            Next
        End Sub
    End Module
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

One of the first things I learned in C++ was that #include <iostream> int
i notice one nice things that a amazon provide that is load pdf data
One of the things that block objects, introduced in Snow Leopard, are good for
This is one of those things that you read once, say aha! and then
Recently I found out that there are several things that one can do to
I'm using the hyperref package in my document. One of the things that it
One of the most difficult things about understand Spring is that Spring supports multiple
One of the nice things about MooTools, is that it lets you easily assign/fire
I find that many things in Asp.Net is based on assumed knowledge. I for
I'm new to threading in .net and its hard to find good examples that

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.