Difference between String and string

preview_player
Показать описание

See our other Step by Step video series below :-

In this video we shall learn the difference between String and string in C#.

Рекомендации по теме
Комментарии
Автор

Do not miss our Interview Question video series

dnfvideo
Автор

@mail4junkil, I agree but then the interviewers ask like that so the question is like that :-)

dnfvideo
Автор

string is used with variable, whereas String is used with the methods. it's just a naming convention for code readability. in reality they are absolutely the same.

sofianeamarouche
Автор

Helpful to be understanding of it. Thank you.

keatkong
Автор

The difference is that string is recognized in a file where System namespace is not defined, and String is not recognized.

mikhailbisserov
Автор

ya its right, but if the small one is allias, then what should be used in reall programming. and is there any effect if i will use small or capital string/String...

SurendraTarai
Автор

void: System.Void
delegate: System.Delegate

gameking
Автор

Wouldn't have been easier to just say that there is no difference and the interviewers that ask it just try to pull the interviewee's leg!

Mensana
Автор

@mail4junkil, what else should an appropriate title be? If you're doubtful whether 2 things are different, you phrase it in the form of a question "what's the difference" and the answer might be "No Difference" or "Some Difference". Think before you make stupid comments. BTW, if you already knew it's the same, why watch this video let alone make ignorant comments on it? Moreover the word String & string are visibly different, hence an appropriate title!

GodExists
Автор

So int is just an alias of System.Int32 but is int a reference type or value type?

TT-udgf
Автор

Can we use the Alias for each and every one?

sushildharmar
Автор

We already know it's the same. don't title a video 'what's the difference', when there's no difference.

mailjunkil