Code Listings1
Code Listings1
using System;
// Here, we've refactored the logic in our original main method into a method called FeetToInches.
SayHello();
void SayHello()
{
Console.WriteLine ("Hello, world");
}
using System;
class Program
{
static void Main()
{
Console.WriteLine (FeetToInches (30)); // 360
Console.WriteLine (FeetToInches (100)); // 1200
}
Syntax Basics
Type Basics
Numeric Types
Arrays
Null Operators
Statements
Namespaces
C# 12
in a Nutshell
About the Book
Code Listings
C# 12 in a Nutshell
C# 10 in a Nutshell
C# 9.0 in a Nutshell
C# 8.0 in a Nutshell
C# 7.0 in a Nutshell
Extras
Contact