Replaced "South Sudan" with "Burundi"
MODIFY
src/Chapter03/Table03.01.TupleDeclarationAndAssignment.cs
src/Chapter03/Table03.01.TupleDeclarationAndAssignment.cs
public void AssignTupleToIndividuallyDeclaredVaraibles()
{
(string country, string capital, double gdpPerCapita) =
- ("South Sudan", "Juba", 275.18);
+ ("Burundi", "Bujumbura", 263.67);
System.Console.WriteLine(
$@"The poorest country in the world in 2017 was {
country}, {capital}: {gdpPerCapita}");
double gdpPerCapita;
(country, capital, gdpPerCapita) =
- ("South Sudan", "Juba", 275.18);
+ ("Burundi", "Bujumbura", 263.67);
System.Console.WriteLine(
$@"The poorest country in the world in 2017 was {
country}, {capital}: {gdpPerCapita}");
public void AssignTupleToIndividuallyDeclaredAndImplicitlyTypedVariables()
{
(var country, var capital, var gdpPerCapita) =
- ("South Sudan", "Juba", 275.18);
+ ("Burundi", "Bujumbura", 263.67);
System.Console.WriteLine(
$@"The poorest country in the world in 2017 was {
country}, {capital}: {gdpPerCapita}");
public void AssignTupleToIndividuallyDeclaredVariablesThatImplicitlyTypedWithADistributiveSyntax()
{
var (country, capital, gdpPerCapita) =
- ("South Sudan", "Juba", 275.18);
+ ("Burundi", "Bujumbura", 263.67);
System.Console.WriteLine(
$@"The poorest country in the world in 2017 was {
country}, {capital}: {gdpPerCapita}");
public void DeclareANamedItemTupleAndAssignItTupleValuesAndThenAccessTheTupleItemsByName()
{
(string Name, string Capital, double GdpPerCapita) countryInfo =
- ("South Sudan", "Juba", 275.18);
+ ("Burundi", "Bujumbura", 263.67);
System.Console.WriteLine(
$@"The poorest country in the world in 2017 was {
countryInfo.Name}, {countryInfo.Capital}: {
public void AssignANamedItemTupleToASingleImplicitlyTypedVariableThatIsImplicitlyTypedAndThenAccessTheTupleItemsByName()
{
var countryInfo =
- (Name: "South Sudan", Capital: "Juba", GdpPerCapita: 275.18);
+ (Name: "Burundi", Capital: "Bujumbura", GdpPerCapita: 263.67);
System.Console.WriteLine(
$@"The poorest country in the world in 2017 was {
countryInfo.Name}, {countryInfo.Capital}: {
public void AssignAnUnnamedTupleToASingleImplicitlyTypedVariableAndThenAccessTheTupleElementsByTheirItemNumberProperty()
{
var countryInfo =
- ("South Sudan", "Juba", 275.18);
+ ("Burundi", "Bujumbura", 263.67);
System.Console.WriteLine(
$@"The poorest country in the world in 2017 was {
countryInfo.Item1}, {countryInfo.Item2}: {
public void AssignANamedItemTupleToASingleImplicitlyTypedVariableAndThenAccessTheTupleItemsByTheirItemNumberProperty()
{
var countryInfo =
- (Name: "South Sudan", Capital: "Juba", GdpPerCapita: 275.18);
+ (Name: "Burundi", Capital: "Bujumbura", GdpPerCapita: 263.67);
System.Console.WriteLine(
$@"The poorest country in the world in 2017 was {
countryInfo.Item1}, {countryInfo.Item2}: {
public void DiscardPortionsOfTheTupleWithUnderscores()
{
(string name, _, double gdpPerCapita) =
- ("South Sudan", "Juba", 275.18);
+ ("Burundi", "Bujumbura", 263.67);
}
// 10.
public void TupleElementNamesCanBeInferredFromVariableAndPropertyNames()
{
- string country = "South Sudan";
- string capital = "Juba";
- double gdpPerCapita = 275.18;
+ string country = "Burundi";
+ string capital = "Bujumbura";
+ double gdpPerCapita = 263.67;
var countryInfo =
(country, capital, gdpPerCapita);

Replaced "South Sudan" with "Burundi"