Equivalence of String and string in C# test

203 Views Asked by At

Possible Duplicate:
String vs string in C#

I have a test in C# code I'm reading:

if (variable is string)

I am wondering if this is strictly equivalent to:

if (variable is String)

or if some esoteric behavior of C# autoboxing may cause these tests to behave differently.

1

There are 1 best solutions below

0
On BEST ANSWER

They are exactly the same - string is an alias for System.String.