Professional Documents
Culture Documents
Open Source - is computer software that is released under a Static - is a keyword which means an object is not required to Casting ; Type Casting is when you assign a value of one data
license in which the copyright holder grants users access static members. So it saves memory. type to another type.
the rights to use, study, change, and distribute the software and —-Implicit Casting (automatically) - converting a smaller type
its source code to anyone and for any purpose. Void - is the return type of the method. It doesn't return any to a larger type size
value. In such case, return statement is not required. —-Explicit Casting (manually) - converting a larger type to a
Source Code - is generally understood to mean programming smaller size type
statements that are created by a programmer Main - is the method name. It is the entry point for any C#
with a text editor or a visual programming tool and then saved program. Whenever we run the C# program, Main() Try conversion methods
in a file. method is invoked first before any other method. It represents It is also possible to convert data types explicitly by using
the start up of the program. built-in methods, such as
Menu and Title Bar – house the major menu items like File ,
Edit , View , and others. It also houses the search string[] args - is used for command line arguments in C#. While Convert.ToBoolean, Convert.ToDouble, Convert.ToString,
bar , and it is where the name of the application and the of the running the C# program, we can pass values. Convert.ToInt32 (int) and Convert.ToInt64 (long):
program are written. These values are known as arguments which we can use in the
program. Operator – is a symbol that is used to prompt the program that
ToolBar – has the most common action shortcuts and a calculation is to be performed. Operators are
navigation utility used for interacting with Visual Studio. System.Console.WriteLine("Hello World!") - Here, System is the combined with operands to produce new values or information.
namespace. Console is the class defined in In C# Programing, aside from arithmetic
Tool Box – has a set of tools or controls such as buttons , System namespace. The WriteLine() is the static method of operators such as +, - , *, and /, some of the operator use as
labels , texts , and the like. Console class which is used to write the text on the @, <, >, %, &, and many more. When you are
console. working with an operator with just two operands, like x + y, it is
Design/Form Windows – is where the design of the program’s called a binary operator.
interface is done. The I/O statement is used for user and computer interaction. It
used the standard input stream to get input Arithmetic operators are used to perform common
Solution Explorer – is a panel that shows the files of your from the user print information on the standard output stream, mathematical operations *copy the table in nb*
project. and provide error messages using standard error
stream Console.Error. Assignment operators are used to assign values to variables.
Properties Window – is used to display the properties of a
selected item in either solution explorer such as Is a Console.Write/Writeline is a method that can print all basic Equality Operator (==) is the operator that provides a
file or control in the design window. types (string, numeric, and primitive types). comparison of two operands. It returns either True or
Console.Write and Console.Writeline are basically the same False Value
Output Window – is mainly used to observe build progression except Console.Writeline cursor goes to the next
during project compilation. It is important to keep an eye on this line after displaying the output. Relational Operator is used to compare two or more
panel while building , as several useful information such as operands. Its results are Boolean values which can be
warnings , function deprecation, or String Concatenation means combining two string and returns True or False
compile errors will show up in this area. as a result of a new string. C# uses the ‘+’
operator to concatenate two strings.
Logical Operator – A logical operator also returns Boolean 235, 612, 18, 29
values as output. The logical operators and(&&)
and or (||) is used when evaluating two expressions to obtain a Floating point literals are numbers with decimal, fractions, and
one relational result. or/ exponents.
If...Else statement – is used if you want your program to do The difference between a character and string literal is , a
something else if the condition is not met. The character represents a single character
statement in the else body will be executed if the condition constant, while a string literal is composed of several
resulted false. characters.
Nested if statement – is used if ever your condition consists of A character is enclosed with single quotation mark (‘ ‘)
another condition. It will allow you to evaluate
multiple Boolean expressions. And execute different codes for A string has a double quotation mark (“ “)
more than two conditions.
Boolean literals can have either a true or false value.
Else Statement - is to specify a block of code to be executed if
the condition is False.