Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# convert object to string

Object obj=new Object();
obj="hi";

string str1=Convert.ToString(obj);
string str2=obj.ToString();
string str3= obj as string;
string str4=(string)obj;
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #convert #object #string
ADD COMMENT
Topic
Name
5+5 =