This file contains 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
[CompilerGenerated] | |
internal static class $program | |
{ | |
private static void $main(string[] args) | |
{ | |
Console.WriteLine("Hello World!"); | |
} | |
} |
This file contains 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
namespace HelloWorld | |
{ | |
class Hello | |
{ | |
static void Main(string[] args) | |
{ | |
System.Console.WriteLine("Hello World!"); | |
} | |
} | |
} |
This file contains 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
namespace HelloWorld; public class Hello | |
{ | |
static void Main (string[] args) | |
{ | |
System.Console.WriteLine("Hello World!"); | |
} | |
} |
This file contains 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
namespace Company.Product; | |
Company.Product.Component | |
namespace Component | |
{ | |
} |
This file contains 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
public class DataSlice | |
{ | |
public string DataLabel { get; } | |
public float DataValue { get; } | |
public DataSlice(string dataLabel, float dataValue) | |
{ | |
DataLabel = dataLabel; | |
DataValue = dataValue; | |
} |
This file contains 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
var adultData = new DataSlice("Vaccinated adults", 741); |
This file contains 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
public class DataSlice(string dataLabel, float dataValue) | |
{ | |
public string DataLabel | |
{ | |
get => dataLabel; | |
set | |
{ | |
if (value < 0) throw new ArgumentOutOfRangeException(); | |
dataLabel = value; | |
} |
This file contains 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
string path = "c:\\path\\backslashes"; | |
string path = @"c:\pathh\backslashes"; |
This file contains 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
string xml = """ | |
<part number="2021"> | |
<name>year</name> | |
<description>this is the actual year | |
<ref part="2020">year</ref> actual year. | |
</description> | |
</part> | |
"""; |
This file contains 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
string xml = """" | |
Now """ is safe to use in your raw string. | |
""""; |