This document discusses escape sequences, verbatim strings, and substitution markers in C#. It provides examples of using escape sequences like \n for newlines. Verbatim strings prefixed with @ disable escape sequences. Substitution markers like {0} in a format string are replaced with variable values. The document demonstrates various string formatting techniques and taking user input in C# programs.
INTRODUCTION
COMPARISON BETWEEN NORMAL FUNCTION AND INLINE FUNCTION
PROS AND CONS
WHY WHEN AND HOW TO USED?
GENERAL STRUCTURE OF INLINE FUNCTION
EXAMPLE WITH PROGRAM CODE
Some scenarios I came across while working with C# where OOPs funda deviated at some level to provide more flexibility. Suggest me some more scenarios if I miss anyone.
The ppt describes usage of functions in c language. Showing basic use of function and determining the differences between function call by value and function call by reference using pointer. It also includes valid use in swapping two numbers in c along with different outputs. Overall its a basic note for c language.
Introduction User Defined Functions in C,
Categories of Functions,Call by Value,
Call by Reference,Actual arguments,Formal arguments ,Direct Recursive and
Indirect Recursive functions
An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulation. PL/SQL language is rich in built-in operators
INTRODUCTION
COMPARISON BETWEEN NORMAL FUNCTION AND INLINE FUNCTION
PROS AND CONS
WHY WHEN AND HOW TO USED?
GENERAL STRUCTURE OF INLINE FUNCTION
EXAMPLE WITH PROGRAM CODE
Some scenarios I came across while working with C# where OOPs funda deviated at some level to provide more flexibility. Suggest me some more scenarios if I miss anyone.
The ppt describes usage of functions in c language. Showing basic use of function and determining the differences between function call by value and function call by reference using pointer. It also includes valid use in swapping two numbers in c along with different outputs. Overall its a basic note for c language.
Introduction User Defined Functions in C,
Categories of Functions,Call by Value,
Call by Reference,Actual arguments,Formal arguments ,Direct Recursive and
Indirect Recursive functions
An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulation. PL/SQL language is rich in built-in operators
These slides explain the two variants of the hash table-related classes, namely: non-generic (Hashtable) and generic (Dictionary) with codes on github: https://github.com/EngrMikolo/Hashtables
This slide explains three (3) basic sorting algorithms with codes on github. Bubble sort, Selection sort and insertion sort.
visit https://github.com/EngrMikolo/BasicSortingAlgorithms to checkout the codes
explanation on C# value data types and reference data types. It also explains how they are stored in the heap or stack memory.
Feel free to drop your questions and comments below.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
1. C# FOR BEGINNERS
LESSON 5
MICHEAL OGUNDERO
CONTACT :
EMAIL – OGUNDEROAYODEJI@GMAIL.COM
Escape Sequences, Substitution Markers and
SubstitutionValues.
2. ESCAPE SEQUENCES…
• C# string literals can include various unprintable control characters,
such as tab, newline, or carriage-return.
• You cannot directly type these as a literal value instead C# escape
sequences must be used.
• An escape sequence is represented by a backslash (), followed by a
specific character that has special meaning to the compiler. For
example, “n” represents a newline in a double-quoted string.
3. ESCAPE SEQUENCES…
Escape Sequence Meaning
’ Output a Single quote.
” Output a double quote.
Output a Backslash.
n Insert a newline.
r Insert a carriage-return.
t Insert a tab.
0 Insert a null character.
b Insert a backspace.
4. ESCAPE SEQUENCES…
• To print a string that contains a newline, the escape character “n” is used.
Class Program
{
public static void Main(string [] args)
{
string welcomeMessage = "HellonAvero";
Console.WriteLine(welcomeMessage);
}
}
OUTPUT:
Hello
Avero
It’s time to try out others from the table.
5. C#VERBATIM STRINGS @
• Trying to embed all those double backslashes when you need single
backslash is annoying and hard to read.
• To avoid this problem, most programmers use an alternate technique
called verbatim string literals.
• You prefix a string literal with an at-sign (@) to create a verbatim
string.
• Adding @ symbol before the string disables the support of escape
sequences and a string is interpreted as is.
6. C#VERBATIM STRINGS
Class Program
{
public static void Main(string [] args)
{
string welcomeMessage = @"HellonAvero";
Console.WriteLine(welcomeMessage);
}
}
OUTPUT:
HellonPirzada
7. C#VERBATIM STRINGS
• A verbatim identifier can also be used to split a statement across multiple lines
in the source code without the use of “n” escape character.
Class Program
{
public static void Main(string [] args)
{
string welcomeMessage = @"Hello
Avero";
Console.WriteLine(welcomeMessage);
}
}
8. ANOTHER ONE FOR THE CLASS!
• You can directly insert a double quote into a literal string just by doubling the
quotes (“”).This will interpret as a single quotation mark (“).
Class Program
{
public static void Main(string [] args)
{
string welcomeMessage = @"I am an "”Engineer"".";
Console.WriteLine(welcomeMessage);
}
}
OUTPUT:
I am an “Engineer”.
9. SUBSTITUTION MARKERS ANDVALUES…
• Substitution values are used to display the values of program
data and variables.
• A substitution marker marks the position in the format string
where a value should be substituted in the output string.
• It consists of an integer enclosed in a set of matching curly
braces.
• The integer is the numeric position of the substitution value to
be used.
10. SUBSTITUTION MARKERS ANDVALUES
• where parameter 0 is first (value ”Avero"), parameter 1 is second (
value ”Ire"), and parameter 2 is third (value ”Bisi").
Class Program
{
public static void Main(string [] args)
{
string first = ”Avero"; string second = ”Ire";
string third = ”Bisi";
Console.WriteLine("{0} {1}, {0} {1}, {2}.", first, second, third);
}
}
Avero Ire,Avero Ire, Bisi.
11. ANOTHER ONE FOR THE CLASS!
Class Program
{
public static void Main(string [] args)
{
int x = 2; int y = 4;
Console.WriteLine("{0} plus {1} = {2}; {0} times {1} = {3}.", x, y, x+y, x*y);
}
}
12. READING INPUT FROM USERS…
Class Program
{
public static void Main(string [] args)
{
Console.WriteLine ("What is your name?");
string name = Console.ReadLine ();
Console.WriteLine ("Hello, " + name + "!")
}
}
Notice the “+” sign instead of the usual substitution markers.
The
“Console.ReadLine”
takes user input
13. READING INPUT FROM USER
• Note the following features:
• Parameters can be any expression, and the expressions get evaluated before
printing.
• Parameters to be substituted can be of any type.
• The parameters are automatically converted to a string form
14. CLASSWORK
•Modify the addition program to take inputs from users
inputs this time around.
•Take the name of the user and store it in a username
variable
•Personalize the message that displays the result.
18. REFERENCES
• Visual C# How to Program (6th Edition) (Deitel Series)
• Illustrated C# 2005 by Daniel Solis
• https://www.codebuns.com/csharp/escape-sequences/