explicit unboxing of an object to an int
using System;
class MainClass {
public static void Main() {
object myObject = 3;
int myInt3 = (int)myObject; // myObject is unboxed
Console.WriteLine("myInt3 = " + myInt3);
}
}
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
|