Last active
October 9, 2020 08:30
-
-
Save creativ3lab/1c020ead951520487f56428925941b6e to your computer and use it in GitHub Desktop.
C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int foo = 42; // Value type. | |
object bar = foo; // foo is boxed to bar. | |
int foo2 = (int)bar; // Unboxed back to value type. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello, world!"); | |
Console.WriteLine("Is almost the same argument!"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Drawing; | |
public class Example | |
{ | |
public static Image img; | |
public static void Main() | |
{ | |
img = Image.FromFile("Image.png"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment