Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

as c#

 // taking a string variable 
string str1 = "GFG"; 

// taking an Object type variable 
// assigning var1 to it 
object obj1 = str1; 

// now try it to cast to a string 
string str2 = obj1 as string;

//here, 'as' is used to cast the object obj1 to a string,
//as the object already contained data of a string object
Comment

PREVIOUS NEXT
Code Example
Csharp :: appodeal unity integration 
Csharp :: how to handle list properties in c# of string type 
Csharp :: c# office interop copy slide to another pppt 
Csharp :: how to select multiple toggles at once in unity 
Csharp :: getString 
Csharp :: c# label continue in new line 
Csharp :: photon2 what is a stream 
Csharp :: how can datetimepicker accept hour as well 
Csharp :: Area Of the triangle with condition 
Csharp :: unity get layermask 
Csharp :: generate prime numbers 
Csharp :: c# enum to string 
Csharp :: list<string,string c# 
Csharp :: c# loop array backwards 
Csharp :: c# get folder of full ilepath 
Csharp :: get index of item unity 
Csharp :: unity iap 
Csharp :: Task w = Task.Delay(600);w.Wait();new Program().Start(); 
Csharp :: Responsive Bootstrap 4 Admin Dashboard icon cdn 
Csharp :: c# an object on upper level cannot be added to an object 
Html :: html space 
Html :: bootstrap text bold 
Html :: flutter build web html renderer 
Html :: how to remove download option from video tag in html 
Html :: html make phone number callable 
Html :: input type file csv only 
Html :: bootstrap large modal 
Html :: vuejs double click 
Html :: icons burger css font awesome 
Html :: link javascript to html 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =