In C# double quotes are used to enclose
string literals
. So here
"TEXT"
is a string literal. The double quotes will not appear when this string is written to
UI
or printed to an out put medium say
Report
or a
File.
eg.
Label1.Text = "TEXT";
System.IO.File.WriteAllText(fileName,"TEXT");
If the double quotes are removed then it will represent a
variable
which can hold the value of premitive data type or an object which may be an instance of struct or class etc.
var TEXT = "This is text";
var TEXT = new MyClass();
If your requirement is to use the
string value
returned as a
variable
then the
Reflection
may be helpful and these articles
Reflection (C# Programming Guide)[
^]
Reflection in .NET[
^]
Reflection in C# Tutorial[
^]
may be helpful.