Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/d5769f2e8976f816a662 to your computer and use it in GitHub Desktop.
Save Fhernd/d5769f2e8976f816a662 to your computer and use it in GitHub Desktop.
String vs string.
namespace Articulos.Preguntas.P0302
{
public sealed class DiferenciaStringYstring
{
public static void Main()
{
Console.WriteLine (typeof(String));
Console.WriteLine (typeof(string));
String blog1 = "Blog xCSw";
string blog2 = "Blog xCSw";
Console.WriteLine (blog1);
Console.WriteLine (blog2);
Console.WriteLine (String.Concat(blog1, blog2));
Console.WriteLine (string.Concat(blog1, blog2));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment