forcing use of System.String and System.Boolean instead of string and bool

Hi,
I'm using ReSharper 5.1, And i'm looking for a way to restrict the types being used im my project.

I want to only use the types under the System namespace(Int32,String,Boolean,UInt16) and not the default c# types (such as int,string,bool,ushort, etc...)?

4 comments
Comment actions Permalink

Hello koby,

There's no way to restrict the types in this way. We've already received
a similar requests and we will probably provide such functionality in one
of the future releases. Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi,
I'm using ReSharper 5.1, And i'm looking for a way to restrict the
types being used im my project.
I want to only use the types under the System
namespace(Int32,String,Boolean,UInt16) and not the default c# types
(such as int,string,bool,ushort, etc...)?

---
Original message URL:
http://devnet.jetbrains.net/message/5270522#5270522



0
Comment actions Permalink

Does anyone know if this is still true (it's been nine years)?

0
Comment actions Permalink

Hello @Andrewjens,

 

Please try the following option -  ReSharper | Options | Code Editing | C# | Code Style | Built-in types, change keyword to CLR type name.

Thank you.

0
Comment actions Permalink

Hi Angelina,

Worked at treat. Thank you.

Cheers,

Andrew.

0

Please sign in to leave a comment.