Quantcast
Browsing all 69 articles
Browse latest View live

Answer by Jineesh Uvantavida for What is the difference between String and...

A string is a sequential collection of characters that is used to represent text.A String object is a sequential collection of System.Char objects that represent a string; a System.Char object...

View Article


Answer by DavidWainwright for What is the difference between String and...

I prefer to use string because this type is used so much that I don't want the syntax highlighter blending it in with all the other classes. Although it is a class it is used more like a primitive...

View Article


Answer by Saurabh for What is the difference between String and string in C#?

string is equal to System.String in VS2015 if you write this:System.String str;Than compiler will show potential fix to optimize it and after applying that fixe it will look like thisstring str;

View Article

Answer by sayah imad for What is the difference between String and string in C#?

String : Represent a classstring : Represent an aliasIt's just a coding convention from microsoft .

View Article

Answer by hubot for What is the difference between String and string in C#?

To be honest, in practice usually there is not difference between System.String and string.All types in C# are objects and all derives from System.Object class. One difference is that string is a C#...

View Article


Answer by Pritam Jyoti Ray for What is the difference between String and...

There is no difference between the two. You can use either of them in your code.System.String is a class (reference type) defined the mscorlib in the namespace System. In other words, System.String is...

View Article

Answer by yazan_ati for What is the difference between String and string in C#?

As pointed out, they are the same thing and string is just an alias to String.For what it's worth, I use string to declare types - variables, properties, return values and parameters. This is...

View Article

Answer by tic for What is the difference between String and string in C#?

In case it's useful to really see there is no difference between string and System.String:var method1 = typeof(MyClass).GetMethod("TestString1").GetMethodBody().GetILAsByteArray();var method2 =...

View Article


Answer by Anuja Lamahewa for What is the difference between String and string...

Both are the same.The difference is how you use it.Convention is,string is for variables String is for calling other String class methodsLike:string fName = "John";string lName = "Smith";string...

View Article


Answer by Jeppe Stig Nielsen for What is the difference between String and...

New answer after 6 years and 5 months (procrastination).While string is a reserved C# keyword that always has a fixed meaning, String is just an ordinary identifier which could refer to anything....

View Article

Answer by Teter28 for What is the difference between String and string in C#?

You don't need import namespace (using System;) to use string because it is a global alias of System.String.To know more about aliases you can check this link.

View Article

Answer by InfZero for What is the difference between String and string in C#?

In the context of MSDN Documentation, String class is documented like any other data type (e.g., XmlReader, StreamReader) in the BCL.And string is documented like a keyword (C# Reference) or like any...

View Article

Answer by Kalu Singh Rao for What is the difference between String and string...

As far as I know, string is just an alias for System.String, and similar aliases exist for bool, object, int... the only subtle difference is that you can use string without a "using System;"...

View Article


Answer by Vijay Singh Rana for What is the difference between String and...

string is an alias for String in the .NET Framework.Where "String" is in fact System.String.I would say that they are interchangeable and there is no difference when and where you should use one or the...

View Article

Answer by Neel for What is the difference between String and string in C#?

string is a keyword, and you can't use string as an identifier. String is not a keyword, and you can use it as an identifier:Examplestring String = "I am a string";The keyword string is an alias...

View Article


Answer by Geeky Ninja for What is the difference between String and string in...

String: A String object is called immutable (read-only) because its value cannot be modified once it has been created. Methods that appear to modify a String object actually return a new String object...

View Article

Answer by zap92 for What is the difference between String and string in C#?

There is practically no differenceThe C# keyword string maps to the .NET type System.String - it is an alias that keeps to the naming conventions of the language.

View Article


Image may be NSFW.
Clik here to view.

Answer by Shivprasad Koirala for What is the difference between String and...

This YouTube video demonstrates practically how they differ.But now for a long textual answer.When we talk about .NET there are two different things one there is .NET framework and the other there are...

View Article

Answer by user2771704 for What is the difference between String and string in...

There's a quote on this issue from Daniel Solis' book.All the predefined types are mapped directly to underlying .NET types. The C# type names (string) are simply aliases for the .NET types (String or...

View Article

Answer by Coder for What is the difference between String and string in C#?

Yes, that's no difference between them, just like the bool and Boolean.

View Article
Browsing all 69 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>