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...)?
Please sign in to leave a comment.
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!"
Does anyone know if this is still true (it's been nine years)?
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.
Hi Angelina,
Worked at treat. Thank you.
Cheers,
Andrew.