System

Provides fundamental classes and base types that define value types, references types, generic type parameters, methods, and attributes used throughout the .NET Framework.

System.String

Represents text as a sequence of characters.

Summary

The String class is a fundamental type in .NET for working with text data. It is an immutable sequence of characters.

Properties
  • Length: Gets the number of characters in the current String object.
Methods
  • Equals(string a, string b): Compares two strings for equality.
  • IsNullOrEmpty(string value): Indicates whether the specified string is null or an empty string.
  • Contains(char value): Determines whether an specified character occurs within this string.
public static bool Equals(string a, string b);
public static bool IsNullOrEmpty(string value);
public bool Contains(char value);

System.Int32

Represents a 32-bit signed integer.

Summary

The Int32 structure represents a 32-bit signed integer, which is a 32-bit integer type that ranges in value from -2,147,483,648 to 2,147,483,647.

Methods
  • Parse(string s): Converts the string representation of a number to its 32-bit signed integer equivalent.
  • ToString(): Converts the numeric value of this instance to its equivalent string representation.
public static int Parse(string s);
public override string ToString();

System.Console

Provides standard input, output, and error streams for console applications.

Summary

The Console class provides methods for interacting with the standard input, output, and error streams of the operating system's console.

Methods
  • WriteLine(string value): Writes the specified value to the standard output stream.
  • ReadLine(): Reads the next line of characters from the standard input stream and returns it as a string.
public static void WriteLine(string value);
public static string ReadLine();