100% found this document useful (1 vote)
8 views

Introduction to C Programming for the Microsoft NET Platform 1st Edition by Administrator download

The document is an introduction to a C# programming course for the Microsoft .NET platform, aimed at experienced developers with prior programming knowledge. It outlines course objectives, prerequisites, and provides a detailed course structure covering various programming concepts and practices. Additionally, it includes information about course materials and resources for further study.

Uploaded by

novuyoleshd
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
8 views

Introduction to C Programming for the Microsoft NET Platform 1st Edition by Administrator download

The document is an introduction to a C# programming course for the Microsoft .NET platform, aimed at experienced developers with prior programming knowledge. It outlines course objectives, prerequisites, and provides a detailed course structure covering various programming concepts and practices. Additionally, it includes information about course materials and resources for further study.

Uploaded by

novuyoleshd
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 56

Introduction to C Programming for the Microsoft

NET Platform 1st Edition by Administrator pdf


download

https://ebookball.com/product/introduction-to-c-programming-for-
the-microsoft-net-platform-1st-edition-by-administrator-15326/

Explore and download more ebooks or textbooks


at ebookball.com
Here are some recommended products for you. Click the link to
download, or explore more at ebookball.com

Introduction to C Programming for the Microsoft NET


Platform 1st edition by Administrator

https://ebookball.com/product/introduction-to-c-programming-for-the-
microsoft-net-platform-1st-edition-by-administrator-15220/

Introduction to C Programming for the Microsoft NET


Platform 1st Edition by Administrator

https://ebookball.com/product/introduction-to-c-programming-for-the-
microsoft-net-platform-1st-edition-by-administrator-15326/

Introduction to C Programming for the Microsoft NET


Platform 1st Edition by Administrator

https://ebookball.com/product/introduction-to-c-programming-for-the-
microsoft-net-platform-1st-edition-by-administrator-15318/

Introduction to C Programming for the Microsoft NET


Platform 1st Edition by Workbook

https://ebookball.com/product/introduction-to-c-programming-for-the-
microsoft-net-platform-1st-edition-by-workbook-15360/
Introduction to C Programming for the Microsoft IT And
Computer CLXV 1st Edition by Microsoft Corporation

https://ebookball.com/product/introduction-to-c-programming-for-the-
microsoft-it-and-computer-clxv-1st-edition-by-microsoft-
corporation-15322/

Introduction to C Programming for the Microsoft IT And


Computer CLXXII 3rd Edition by Robert Lafore 8175152699
9788175152694
https://ebookball.com/product/introduction-to-c-programming-for-the-
microsoft-it-and-computer-clxxii-3rd-edition-by-robert-
lafore-8175152699-9788175152694-15272/

Microsoft C Programming for the Absolute Beginner 1st


edition by Andrew Harris 1931841160 9781931841160

https://ebookball.com/product/microsoft-c-programming-for-the-
absolute-beginner-1st-edition-by-andrew-
harris-1931841160-9781931841160-15246/

Microsoft Visual C# 2017 An Introduction to Object


Oriented Programming 7th Edition by Joyce Farrell ISBN
1337102100 9781337102100
https://ebookball.com/product/microsoft-visual-c-2017-an-introduction-
to-object-oriented-programming-7th-edition-by-joyce-farrell-
isbn-1337102100-9781337102100-25038/

Microsoft C Programming for the Absolute Beginner 1st


Edition by Andrew Harris 1931841160 978-1931841160

https://ebookball.com/product/microsoft-c-programming-for-the-
absolute-beginner-1st-edition-by-andrew-
harris-1931841160-978-1931841160-15316/
Introduction to C# Programming
for the Microsoft .NET Platform ®

(Prerelease)
Workbook
Course Number: 2124A

This course is based on the prerelease Beta 1 version of Microsoft® Visual Studio .NET.
Content in the final release of the course may be different from the content included in this
prerelease version. All labs in the course are to be completed with the Beta 1 version of
Visual Studio .NET.

Part Number: X08-16666


Released: 03/2001
Information in this document is subject to change without notice. The names of companie s,
products, people, characters, and/or data mentioned herein are fictitious and are in no way intended
to represent any real individual, company, product, or event, unless otherwise noted. Complying
with all applicable copyright laws is the responsibility of the user. No part of this document may
be reproduced or transmitted in any form or by any means, electronic or mechanical, for any
purpose, without the express written permission of Microsoft Corporation. If, however, your only
means of access is elect ronic, permission to print one copy is hereby granted.

Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual
property rights covering subject matter in this document. Except as expressly provided in any
written license agreement from Microsoft, the furnishing of this document does not give you any
license to these patents, trademarks, copyrights, or other intellectual property.

 2001 Microsoft Corporation. All rights reserved.

Microsoft, ActiveX, BackOffice, BizTalk, IntelliSense, JScript, MSDN, MS-DOS, PowerPoint,


Visual Basic, Visual C++, Visual C#, Visual Studio, Windows, Windows NT, and Windows
Media are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A.
and/or other countries.

Other product and company names mentioned herein may be the trademarks of their respective
owners.

Course Number: 2124A


Part Number: X08-16666
Released: 03/2001
Introduction to C# Programming for the Microsoft® .NET Platform (Prerelease) iii

Contents
Introduction
Course Materials.......................................................................................... 2
Prerequisites................................................................................................ 3
Course Outline ................................ ................................ ............................ 4
Course Outline (continued) ........................................................................... 5
Course Outline (continued) ........................................................................... 6
Microsoft Certified Professional Program ....................................................... 7
Facilities..................................................................................................... 9
Module 1: Overview of the Microsoft .NET Platform
Overview................................ ................................ ................................ .... 1
Introduction to the .NET Platform.................................................................. 2
Overview of the .NET Framework ................................................................. 4
Benefits of the .NET Framework ................................................................... 5
The .NET Framework Components ................................................................ 7
Languages in the .NET Framework.............................................................. 13
Review ..................................................................................................... 14
Module 2: Overview of C#
Overview................................ ................................ ................................ .... 1
Structure of a C# Program............................................................................. 2
Basic Input/Output Operations....................................................................... 9
Recommended Practices ............................................................................. 15
Compiling, Running, and Debugging............................................................ 22
Lab 2: Creating a Simple C# Program........................................................... 36
Review ..................................................................................................... 45
Module 3: Using Value-Type Variables
Overview................................ ................................ ................................ .... 1
Common Type System ................................................................................. 2
Naming Variables ........................................................................................ 9
Using Built- in Data Types........................................................................... 15
Compound Assignment .............................................................................. 18
Increment and Decrement........................................................................... 20
Creating User-Defined Data Types............................................................... 24
Converting Data Types ............................................................................... 28
Lab 3: Creating and Using Types ................................................................. 32
Review ..................................................................................................... 36
Module 4: Statements and Exceptions
Overview................................ ................................ ................................ .... 1
Introduction to Statements................................ ................................ ............ 2
Using Selection Statements ........................................................................... 6
Using Iteration Statements ................................ ................................ .......... 17
Using Jump Statements............................................................................... 29
Lab 4.1: Using Statements ................................ ................................ .......... 32
Handling Basic Exceptions ......................................................................... 41
Raising Exceptions .................................................................................... 51
iv Introduction to C# Programming for the Microsoft® .NET Platform (Prerelease)

Lab 4.2: Using Exceptions ................................ ................................ .......... 62


Review ..................................................................................................... 72
Module 5: Methods and Parameters
Overview................................ ................................ ................................ .... 1
Using Methods ................................ ................................ ............................ 2
Using Parameters....................................................................................... 16
Using Overloaded Methods ......................................................................... 30
Lab 5: Creating and Using Methods ............................................................. 38
Review ..................................................................................................... 50
Module 6: Arrays
Overview................................ ................................ ................................ .... 1
Overview of Arrays...................................................................................... 2
Creating Arrays ......................................................................................... 11
Using Arrays ............................................................................................. 18
Lab 6: Creating and Using Arrays ................................................................ 31
Review ..................................................................................................... 42
Module 7: Essentials of Object-Oriented Programming
Overview................................ ................................ ................................ .... 1
Classes and Objects...................................................................................... 2
Using Encapsulation................................................................................... 10
C# and Object Orientation........................................................................... 21
Lab 7: Creating and Using Classes ............................................................... 39
Defining Object-Oriented Systems............................................................... 53
Review ..................................................................................................... 62
Module 8: Using Reference-Type Variables
Overview................................ ................................ ................................ .... 1
Using Reference-Type Variables................................ ................................ .... 2
Using Common Reference Types ................................................................. 15
The Object Hierarchy ................................................................................. 23
Namespaces in the .NET Framework............................................................ 29
Lab 8.1: Defining And Using Reference-Type Variables ................................. 35
Data Conversions....................................................................................... 43
Multimedia: Type-Safe Casting ................................................................... 56
Lab 8.2 Converting Data............................................................................. 57
Review ..................................................................................................... 63
Module 9: Creating and Destroying Objects
Overview................................ ................................ ................................ .... 1
Using Constructors ...................................................................................... 2
Initializing Data ......................................................................................... 13
Lab 9.1: Creating Objects ........................................................................... 31
Objects and Memory................................ ................................ .................. 39
Using Destructors...................................................................................... 45
Lab 9.2: Destroying Objects........................................................................ 60
Review ..................................................................................................... 65
Module 10: Inheritance in C#
Overview................................ ................................ ................................ .... 1
Deriving Classes.......................................................................................... 2
Implementing Methods ............................................................................... 10
Introduction to C# Programming for the Microsoft® .NET Platform (Prerelease) v

Using Sealed Classes................................ ................................ .................. 26


Using Interfaces......................................................................................... 28
Using Abstract Classes ............................................................................... 42
Lab 10: Using Inheritance to Implement an Interface...................................... 53
Review ..................................................................................................... 71
Module 11: Aggregation, Namespaces, and Advanced Scope
Overview................................ ................................ ................................ .... 1
Using Internal Classes, Methods, and Data...................................................... 2
Using Aggregation ..................................................................................... 11
Lab 11.1: Specifying Internal Access............................................................ 22
Using Namespaces ..................................................................................... 28
Using Modules and Assemblies ................................................................... 49
Lab 11.2: Using Namespaces and Assemblies................................................ 63
Review ..................................................................................................... 69
Module 12: Operators, Delegates, and Events
Overview................................ ................................ ................................ .... 1
Introduction to Operators .............................................................................. 2
Operator Overloading ................................................................................... 8
Lab 12.1: Defining Operators ...................................................................... 21
Creating and Using Delegates ...................................................................... 40
Defining and Using Events................................ ................................ .......... 50
Demonstration: Handling Events................................ ................................ .. 56
Lab 12.2: Defining and Using Events ........................................................... 57
Module 13: Properties and Indexers
Overview................................ ................................ ................................ .... 1
Using Properties .......................................................................................... 2
Using Indexers ................................ ................................ .......................... 17
Lab 13: Using Properties and Indexers................................ .......................... 33
Review ..................................................................................................... 42
Module 14: Attributes
Overview................................ ................................ ................................ .... 1
Overview of Attributes ................................................................................. 2
Defining Custom Attributes ......................................................................... 13
Retrieving Attribute Values ......................................................................... 22
Lab 14: Defining and Using Attributes ......................................................... 26
Review ..................................................................................................... 34
Appendix A: Resources for Further Study
Resources for C# ......................................................................................... 1
Introduction to C# Programming for the Microsoft® .NET Platform (Prerelease) vii

About This Course


This section provides you with a brief description of the course, audience,
suggested prerequisites, and course objectives.

Description
This five-day instructor-led course provides students with the knowledge and
skills needed to develop C# applications for the Microsoft® .NET platform. The
course focuses on C# program structure, language syntax, and implementation
details.

Audience
This course is intended for experienced developers who already have
programming experience in C, C++, Microsoft Visual Basic ®, or Java. These
developers will be likely to develop enterprise business solutions.

Student Prerequisites
This course requires that students meet the following prerequisites:
n Experience programming in C, C++, Visual Basic, Java, or another
programming language
n Familiarity with Microsoft’s .NET strategy as described on
Microsoft’s .NET Web site: http://www.microsoft.com/net/
n Familiarity with the .NET Framework as described in Microsoft MSDN®
Magazine:
http://msdn.microsoft.com/msdnmag/issues/0900/Framework/
Framework. asp
and
http://msdn.microsoft.com/msdnmag/issues/1000/Framework2/
Framework2.asp
viii Introduction to C# Programming for the Microsoft® .NET Platform (Prerelease)

Course Objectives
After completing this course, the student will be able to:
n List the major elements of the .NET Framew ork and explain how C# fits
into the .NET platform.
n Analyze the basic structure of a C# application and be able to debug,
compile, and run a simple application.
n Create, name, and assign values to variables.
n Use common statements to implement flow control, looping, and exception
handling.
n Create methods (functions and subroutines) that can return values and take
parameters.
n Create, initialize, and use arrays.
n Explain the basic concepts and terminology of object-oriented programming.
n Use common objects and references types.
n Create, initialize, and destroy objects in a C# application.
n Build new C# classes from existing classes.
n Create self-contained classes and frameworks in a C# application.
n Define operators and add event specifications.
n Implement properties and indexers.
n Use predefined and custom attributes.
Introduction to C# Programming for the Microsoft® .NET Platform (Prerelease) ix

Student Materials Compact Disc Contents


The Student Materials compact disc contains the following files and folders:
n Autorun.exe. When the CD is inserted into the CD-ROM drive, or when you
double -click the autorun.exe file, this file opens the CD and allows you to
browse the Student Materials CD or install Internet Explorer.
n Default.htm. This file opens the Student Materials Web page. It provides
you with resources pertaining to this course, including add itional reading,
review and lab answers, lab files, multimedia presentations, and course-
related Web sites.
n Readme.txt. This file contains a description of the compact disc contents and
setup instructions in ASCII format (non-Microsoft Word document).
n 2124a_sg.doc. This file is the Classroom Setup Guide. It contains a
description of classroom requirements, classroom setup instructions, and the
classroom configuration.
n AddRead. This folder contains additional reading pertaining to this course.
If there are no additional reading files, this folder does not appear.
n Appendix. This folder contains appendix files for this course. If there are no
appendix files, this folder does not appear.
n Democode. This folder contains demonstration code. If there is no
demonstration code, the Democode folder does not appear.
n Fonts. This folder contains fonts that are required to view the PowerPoint
presentation and Web-based materials.
n Ie5. This folder contains Microsoft Internet Explorer 5.5.
n Labs. This folder contains files that are used in the hands-on labs. These
files may be used to prepare the student computers for the hands-on labs.
n Media. This folder contains files that are used in multimedia presentations
for this course. If this course does not include any multimedia presentations,
this folder does not appear.
n Menu. This folder contains elements for autorun.exe.
n Mplayer. This folder contains files that are required to install Windows
Media Player.
n Practices. This folder contains files that are used in the hands-on practices.
If there are no practices, the Practices folder does not appear.
n Sampapps. This folder contains the sample applications associated with this
course. If there are no associated sample applications, the Sampapps folder
does not appear.
n Sampcode. This folder contains sample code that is accessible through the
Web pages on the Student Materials CD. If there is no sample code, the
Sampcode folder does not appear.
n Sampsite. This folder contains files that create the sample site associated
with this course. I f there is no sample site, the Sampsite folder does not
appear.
n Setup. This folder contains additional files that may be required for lab setup.
If no additional files are required, the Setup folder does not appear.
x Introduction to C# Programming for the Microsoft® .NET Platform (Prerelease)

n Webfiles. This folder contains the files that are required to view the course
Web page. To open the Web page, open Windows Explorer, and in the root
directory of the compact disc, double-click Default.htm or Autorun.exe.
n Wordview. This folder contains the Word Viewer that is used to view any
Word document (.doc) files that are included on the compact disc. If no
Word documents are included, this folder does not appear.
Introduction to C# Programming for the Microsoft® .NET Platform (Prerelease) xi

Document Conventions
The following conventions are used in course materials to distinguish elements
of the text.
Convention Use
u Indicates an introductory page. This symbol appears next
to a topic heading when additional information on the topic
is covered on the page or pages that follow it.
bold Represents commands, command options, and syntax that
must be typed exactly as shown. It also indicates
commands on menus and buttons, dialog box titles and
options, and icon and menu names.
italic In syntax statements or descriptive text, indicates argument
names or placeholders for variable information.
Title Capitals Indicate d omain names, user names, computer names,
directory names, and folder and file names, except when
specifically referring to case-sensitive names. Unless
otherwise indicated, you can use lowercase letters when
you type a directory name or file name in a dialog box or
at a command prompt.
ALL CAPITALS Indicate the names of keys, key sequences, and key
combinations — for example, ALT+SPACEBAR.
monospace Represents code samples or examples of screen text.
[] In syntax statements, enclose optional items. For example,
[filename] in command syntax indicates that you can
choose to type a file name with the command. Type only
the information within the brackets, not the brackets
themselves.
{} In syntax statements, enclose required items. Type only the
information within the braces, not the braces themselves.
| In syntax statements, separates an either/or choice.
å Indicates a procedure with sequential steps.
... In syntax statements, specifies that the preceding item may
be repeated.
. Represents an omitted portion of a code sample.
.
.
THIS PAGE INTENTIONALLY LEFT BLANK
Introduction

Contents

Introduction 1
Course Materials 2
Prerequisites 3
Course Outline 4
Microsoft Certified Professional Program 7
Facilities 9

This course is based on the prerelease Beta 1 version of Microsoft® Visual Studio .NET.
Content in the final release of the course may be different from the content included in
this prerelease version. All labs in the course are to be completed with the Beta 1
version of Visual Studio .NET.
Information in this document is subject to change without notice. The names of companies,
products, people, characters, and/or data mentioned herein are fictitious and are in no way intended
to represent any real individual, company, product, or event, unless otherwise noted. Complying
with all applicable copyright laws is the responsibility of the user. No part of this document may
be reproduced or transmitted in any form or by any means, electronic or mechanical, for any
purpose, without the express written permission of Microsoft Corporation. If, however, your only
means of access is electronic, permission to print one copy is hereby granted.

Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual
property rights covering subject matter in this document. Except as expressly provided in any
written license agreement from Microsoft, the furnishing of this document does not give you any
license to these patents, trademarks, copyrights, or other intellectual property.

 2001 Microsoft Corporation. All rights reserved.

Microsoft, ActiveX, BizTalk, IntelliSense, JScript, Microsoft Press, MSDN, PowerPoint, Visual
Basic, Visual C++, Visual #, Visual Studio, Windows, and Windows Media are either registered
trademarks or trademarks of Microsoft Corporation in the U.S.A. and/or other countries.

Other product and company names mentioned herein may be the trademarks of their respective
owners.
Introduction 1

Introduction

n Name
n Company Affiliation
n Title/Function
n Job Responsibility
n Programming Experience
n C, C++, Visual Basic, or Java Experience
n Expectations for the Course
Random documents with unrelated
content Scribd suggests to you:
And to Beichan half of it gave she:
“Keep it, to mind you of that love
The lady bore that set you free.

“And set your foot on good ship-board,


And haste ye back to your own countrie;
And before that seven years have an end,
Come back again, love, and marry me.”
PART II
But long ere seven years had an end,
She longd full sore her love to see;
For ever a voice within her breast
Said, “Beichan has broke his vow to thee.”
So she’s set her foot on good ship-board,
And turnd her back on her own countrie.

She sailed east, she sailed west,


Till to fair England’s shore she came;
Where a bonny shepherd she espied,
Feeding his sheep upon the plain.

“What news, what news, thou bonny shepherd?


What news hast thou to tell to me?”
“Such news I hear, ladie,” he says,
“The like was never in this countrie.

“There is a wedding in yonder hall,


Has lasted these thirty days and three;
Young Beichan will not wed his bride,
For love of one that’s yond the sea.”

She’s put her hand in her pocket,


Gi’en him the gold and white monie;
“Hae, take ye that, my bonny boy,
For the good news thou tell’st to me.”

When she came to young Beichan’s gate,


She tirled softly at the pin;
So ready was the proud porter
To open and let this lady in.

“Is this young Beichan’s hall,” she said,


“Or is that noble lord within?”
“Yea, he’s in the hall among them all,
And this is the day o’ his weddin.”
“And has he wed anither love?
And has he clean forgotten me?”
And sighin’ said that gay ladie,
“I wish I were in my own countrie!”

And she has taen her gay gold ring,


That with her love she break so free;
Says, “Gie him that, ye proud porter,
And bid the bridegroom speak to me.”

When the porter came his lord before,


He kneeled down low on his knee:
“What aileth thee, my proud porter,
Thou art so full of courtesie?”

“I’ve been porter at your gates,


It’s thirty long years now and three;
But there stands a lady at them now,
The like o’ her did I never see;

“For on every finger she has a ring,


And on her mid-finger she has three,
And as meickle gold aboon her brow
As would buy an earldom to me.”

Its out then spak the bride’s mother,


Aye, and an angry woman was shee;
“Ye might have excepted our bonny bride,
And twa or three of our companie.”

“O hold your tongue, thou bride’s mother,


Of all your folly let me be;
She’s ten times fairer nor the bride,
And all that’s in your companie.

“She begs one sheave of your white bread,


But and a cup of your red wine;
But and a cup of your red wine;
And to remember the lady’s love,
That last reliev’d you out of pine.”

“O well-a-day!” said Beichan then,


“That I so soon have married thee;
For it can be none but Susie Pye,
That sailed the sea for love of me.”

And quickly hied he down the stair;


Of fifteen steps he made but three;
He’s taen his bonny love in his arms,
And kist and kist her tenderlie.

“O hae ye taen anither bride?


And hae ye quite forgotten me?
And hae ye quite forgotten her,
That gave you life and libertie?”

She looked o’er her left shoulder,


To hide the tears stood in her e’e:
“Now fare thee well, young Beichan,” she says,
“I’ll try to think no more on thee.”

“O never, never, Susie Pye,


For surely this can never be;
Nor ever shall I wed but her
That’s done and dree’d so much for me.”

Then out and spak the forenoon bride,


“My lord, your love it changeth soon;
This morning I was made your bride,
And another chose ere it be noon.”

“O hold thy tongue, thou forenoon bride,


My true love, thou canst never be;
And whan ye return to your own countrie,
A double dower I’ll send with thee ”
A double dower I ll send with thee.

He’s taen Susie Pye by the white hand,


And gently led her up and down;
And ay as he kist her red rosy lips,
“Ye’re welcome, jewel, to your own.”

He’s taen her by the milk-white hand,


And led her to yon fountain stane;
He’s changed her name from Susie Pye,
And he’s call’d her his bonny love, Lady Jane.

(Condensed)
THE CHILD OF ELLE

PA RT I
On yonder hill a castle stands,
With walls and towers bedight,
And yonder lives the Child of Elle,
A young and comely Knight.

The Child of Elle to his garden went,


And stood at his garden pale,
When, lo! he beheld Fair Emmeline’s page
Come tripping down the dale.

The Child of Elle he hied him thence


Y-wis he stood not still,
And soon he met Fair Emmeline’s page
Come climbing up the hill.

“Now Christ thee save, thou little foot-page!


Now Christ thee save and see!
Oh! tell me how does thy Lady gay,
And what may thy tidings be?”

“My Lady, she is all woe-begone,


And the tears they fall from her eyne;
And aye she laments the deadly feud
Between her house and thine.

“And here she sends thee a silken scarf,


Bedewed with many a tear,
And bids thee sometimes think on her,
Who loved thee so dear.

“And here she sends thee a ring of gold,


The last boon thou mayst have,
And bids thee wear it for her sake,
When she is laid in grave.

“For, ah! her gentle heart is broke,


A di t h b
And in grave soon must she be,
Sith her father hath chose her a new, new love,
And forbid her to think of thee.

“Her father hath brought her a carlish Knight,


Sir John of the North Countraye,
And within three days she must him wed,
Or he vows he will her slay.”

“Now, hie thee back, thou little foot-page,


And greet thy Lady from me,
And tell her that I, her own true love,
Will die or set her free.

“Now, hie thee back, thou little foot-page,


And let thy fair Lady know,
This night will I be at her bower-window
Betide me weal or woe!”

The boy he tripped, the boy he ran,


He neither stint nor stayed
Until he came to Fair Emmeline’s bower,
When kneeling down he said:—

“O Lady, I’ve been with thy own true love,


And he greets thee well by me;
This night will he be at thy bower-window,
And die or set thee free.”
PART II
Now day was gone, and night was come,
And all were fast asleep,
All save the Lady Emmeline,
Who sate in her bower to weep:

And soon she heard her true love’s voice


Low whispering at the wall,
“Awake! awake! my dear Lady,
’Tis I, thy true love call.

“Awake! awake! my Lady dear,


Come, mount this fair palfray;
This ladder of ropes will let thee down,
I’ll carry thee hence away.”

“Now nay, now nay, thou gentle Knight,


Now nay, this may not be,
For aye should I tint my maiden fame,
If alone I should wend with thee.”

“O Lady, thou with a Knight so true,


Mayst safely wend alone;
To my lady-mother I will thee bring,
Where marriage shall make us one.”

“My father he is a Baron bold,


Of lineage proud and high;
And what would he say, if his daughter
Away with a Knight should fly?

“Ah! well I wot, he never would rest,


Nor his meat should do him no good,
Till he had slain thee, Child of Elle,
And seen thy dear heart’s blood!”.

“O Lady, wert thou in thy saddle set,


A d littl hi f
And a little space him fro,
I would not care for thy cruel father,
Nor the worst that he could do.

“O Lady, wert thou in thy saddle set,


And once without this wall,
I would not care for thy cruel father,
Nor the worst that might befall.”

Fair Emmeline sighed, Fair Emmeline wept,


And aye her heart was woe:
At length he seized her lily-white hand,
And down the ladder he drew.

And thrice he clasped her to his breast,


And kissed her tenderly,
The tears that fell from her fair eyes,
Ran like the fountain free.

He mounted himself on his steed so tall,


And her on a fair palfray,
And slung his bugle about his neck,
And roundly they rode away.

All this beheard her own damsel,


In her bed whereas she lay,
Quoth she, “My Lord shall know of this,
So I shall have gold and fee!”

“Awake! awake! thou Baron bold!


Awake! my noble Dame!
Your daughter is fled with the Child of Elle
To do the deed of shame!”

The Baron he woke, the Baron he rose,


And called his merry men all:
“And come thou forth, Sir John the Knight,
The Lady is carried to thrall!”
The Lady is carried to thrall!
P A R T I II
Fair Emmeline scant had ridden a mile,
A mile forth of the town,
When she was aware of her father’s men
Come galloping over the down.

And foremost came the carlish Knight,


Sir John of the North Countraye,
“Now stop! now stop! thou false traitor,
Nor carry that Lady away!

“For she is come of high lineage,


And was of a Lady born,
And ill it beseems thee, a false churl’s son,
To carry her hence to scorn!”

“Now loud thou liest, Sir John the Knight,


Now thou dost lie of me,
My father’s a Knight, a Lady me bore,
So never did none by thee!

“But light now down, my Lady fair,


Light down, and hold my steed;
While I and this discourteous Knight
Do try this arduous deed.

“But light now down, my dear Lady,


Light down, and hold my horse;
While I and this discourteous Knight
Do try our valour’s force.”

Fair Emmeline sighed, Fair Emmeline wept,


And aye her heart was woe,
While twixt her love and the carlish Knight
Passed many a baleful blow.

The Child of Elle, he fought so well,


A hi h d i
As his weapon he waved amain,
That soon he had slain the carlish Knight,
And laid him upon the plain.

And now the Baron and all his men


Full fast approached nigh:
Ah! what may Lady Emmeline do?
’Twere now no boot to fly!

Her lover, he put his horn to his mouth,


And blew both loud and shrill,
And soon he saw his own merry men
Come riding over the hill.

“Now hold thy hand, thou bold Baron,


I pray thee, hold thy hand,
Nor ruthless rend two gentle hearts
Fast knit in true love’s band.

“Thy daughter I have dearly loved,


Full long and many a day;
But with such love as holy Kirk
Hath freely said we may.

“Oh! give consent she may be mine,


And bless a faithful pair;
My lands and livings are not small,
My house and lineage fair.

“My mother she was an Earl’s daughter,


And a noble Knight my sire—”
The Baron he frowned, and turned away
With mickle dole and ire.

Fair Emmeline sighed, Fair Emmeline wept,


And did all trembling stand;
At length she sprang upon her knee,
And held his lifted hand
And held his lifted hand.

“Pardon, my Lord and Father dear,


This fair young Knight and me!
Trust me, but for the carlish Knight,
I never had fled from thee.

“Oft have you called your Emmeline,


Your darling and your joy;
Oh! let not then your harsh resolves
Your Emmeline destroy.”

The Baron he stroked his dark-brown cheek,


And turned his head aside
To wipe away the starting tear,
He proudly strave to hide.

In deep revolving thought he stood,


And mused a little space:
Then raised Fair Emmeline from the ground,
With many a fond embrace.

“Here, take her, Child of Elle,” he said


And gave her lily hand:
“Here, take my dear and only child,
And with her half my land.

“Thy father once mine honour wronged


In days of youthful pride;
Do thou the injury repair
In fondness for thy bride.

“And as thou love her, and hold her dear,


Heaven prosper thee and thine;
And now my blessing wend wi’ thee,
My lovely Emmeline.”
Attributed in part to Bishop Percy
(In modern spelling)
F O R H A L LO W E E N A N D M I D S U M M E R E V E
THE SPELL

At eve last Midsummer, no sleep I sought,


But to the field a bag of Hempseed brought;
I scattered round the seed on every side,
And three times in a trembling accent cried:
“This Hempseed with my virgin hand I sow,
Who shall my True-love be, the crop shall mow!”
I straight looked back, and if my eyes speak truth,
With his keen scythe behind me came the youth!
With my sharp heel I three times mark the ground,
And turn me thrice, around, around, around!

Last May-day Fair, I searched to find a Snail,


That might my secret Lover’s name reveal.
Two Hazel-nuts I threw into the flame,
And to each nut I gave a sweetheart’s name.
This with the loudest bounce me sore amazed,
That in a flame of brightest colour blazed.
With my sharp heel, I three times mark the ground,
And turn me thrice, around, around, around!

This mellow Pippin which I pare around,


My Shepherd’s name shall flourish on the ground.
I fling the unbroken paring o’er my head,
Upon the grass a perfect L is read.
Yet on my heart a fairer L is seen
Than what the paring marks upon the green.
With my sharp heel, I three times mark the ground,
And turn me thrice, around, around, around!

John Gay. (Condensed)


T H E YO U N G TA M LA N E

PA RT I
“O I forbid ye, maidens a’,
That wear gowd on your hair,
To come or gae by Carterhaugh,
For young Tamlane is there.”

But up then spake her, fair Janet,


The fairest o’ a’ her kin;
“I’ll cum and gang to Carterhaugh,
And ask nae leave o’ him.”

Janet has kilted her green kirtle,


A little abune her knee;
And she has braided her yellow hair,
A little abune her bree.

And when she came to Carterhaugh,


She gaed beside the well;
And there she fand his steed standing,
But awa was himsell.

She hadna pu’d a red red rose,


A rose but barely three;
Till up and starts a wee wee man,
At lady Janet’s knee.

Says—“Why pu’ ye the rose, Janet?


What gars ye break the tree?
Or why come ye to Carterhaugh,
Withouten leave o’ me?”—

Says—“Carterhaugh it is mine ain;


My daddie gave it me:
I’ll come and gang to Carterhaugh,
And ask nae leave o’ thee.

“The truth ye’ll tell to me, Tamlane:


A d li
A word ye mauna lie;
Gin e’er ye was in haly chapel,
Or sained in Christentie?”—

“The truth I’ll tell to thee, Janet,


A word I winna lee:
My father’s a knight, a lady me bore,
As well as they did thee.

“Randolph, earl Murray, was my sire,


Dunbar, earl March, is thine;
We loved when we were children small,
Which yet you well may mind.

“When I was a boy just turn’d of nine,


My uncle sent for me,
To hunt, and hawk, and ride with him,
And keep him cumpanie.

“There came a wind out of the north,


A sharp wind and a snell;
And a dead sleep came over me,
And frae my horse I fell.

“The Queen of Fairies keppit me


In yon green hill to dwell;
And I’m a fairy, lyth and limb;
Fair ladye, view me well.

“But we, that live in Fairy-land,


No sickness know nor pain,
I quit my body when I will,
And take to it again.

“I quit my body when I please,


Or unto it repair;
We can inhabit at our ease,
In either earth or air
In either earth or air.

“Our shapes and size we can convert


To either large or small;
An old nut-shell’s the same to us
As is the lofty hall.

“We sleep in rose-buds soft and sweet,


We revel in the stream;
We wanton lightly on the wind,
Or glide on a sunbeam.

“And all our wants are well supplied


From every rich man’s store,
Who thankless sins the gifts he gets,
And vainly grasps for more.

“Then I would never tire, Janet,


In Elfish land to dwell;
But aye, at every seven years,
They pay the teind to hell;
And I am sae fat and fair of flesh,
I fear’t will be mysell.

“This night is Hallowe’en, Janet,


The morn is Hallowday;
And, gin ye dare your true love win,
Ye na hae time to stay.

“The night it is good Hallowe’en,


When fairy folk will ride;
And they that wad their true love win
At Miles Cross they maun bide.”—

“But how shall I thee ken, Tamlane?


Or how shall I thee knaw,
Amang so many unearthly knights,
The like I never saw?”—
The like I never saw?

“The first company that passes by,


Say na, and let them gae;
The next company that passes by,
Say na, and do right sae;
The third company that passes by,
Then I’ll be ane o’ thae.

“First let pass the black, Janet,


And syne let pass the brown;
But grip ye to the milk-white steed,
And pu’ the rider down.

“For I ride on the milk-white steed,


And aye nearest the town;
Because I was a christen’d knight,
They gave me that renown.

“My right hand will be gloved, Janet,


My left hand will be bare;
And these the tokens I gie thee,
Nae doubt I will be there.

“They’ll turn me in your arms, Janet,


An adder and a snake;
But haud me fast, let me not pass,
Gin ye wad be my maik.

“They’ll turn me in your arms, Janet,


An adder and an ask;
They’ll turn me in your arms, Janet,
A bale that burns fast.

“They’ll turn me in your arms, Janet,


A red-hot gad o’ airn;
But haud me fast, let me not pass,
For I’ll do you no harm.
o do you o a

“And, next, they’ll shape me in your arms,


A tod, but and an eel;
But haud me fast, nor let me gang,
As you do love me weel.

“They’ll shape me in your arms, Janet,


A dove, but and a swan;
And, last, they’ll shape me in your arms
A mother-naked man:
Cast your green mantle over me—
I’ll be myself again.”—
PART II
Gloomy, gloomy, was the night,
And eiry was the way,
As fair Janet in her green mantle,
To Miles Cross she did gae.

The heavens were black, the night was dark,


And dreary was the place;
But Janet stood, with eager wish,
Her lover to embrace.

Betwixt the hours of twelve and one,


A north wind tore the bent;
And straight she heard strange elritch sounds,
Upon that wind which went.

About the dead hour o’ the night,


She heard the bridles ring;
And Janet was as glad o’ that
As any earthly thing.

Their oaten pipes blew wondrous shrill.


The hemlock small blew clear;
And louder notes from hemlock large,
And bog-reed, struck the ear;
But solemn sounds, or sober thoughts,
The Fairies cannot bear.

They sing, inspired with love and joy,


Like skylarks in the air;
Of solid sense, or thought that’s grave,
You’ll find no traces there.

Fair Janet stood, with mind unmoved,


The dreary heath upon;
And louder, louder wax’d the sound,
As they came riding on.
Will o’ Wisp before them went,
Sent forth a twinkling light;
And soon she saw the fairy bands
All riding in her sight.

And first gaed by the black, black steed,


And then gaed by the brown;
But fast she gript the milk-white steed,
And pu’d the rider down.

She pu’d him frae the milk-white steed,


And loot the bridle fa’;
And up there raise an erlish cry—
“He’s won amang us a’!”—

They shaped him in fair Janet’s arms,


A tod, but and an eel;
She held him fast in every shape—
As she did love him weel.

They shaped him in her arms at last,


A mother-naked man;
She wrapt him in her green mantle,
And sae her true love wan!

Up then spake the queen o’ fairies,


Out o’ a bush o’ broom—
“She that has borrow’d young Tamlane,
Has gotten a stately groom.”—

Up then spake the queen o’ Fairies,


Out o’ a bush o’ rye—
“She’s ta’en awa the bonniest knight
In a’ my cumpanie.

“But had I kenn’d, Tamlane,” she says,


“A ladye wad borrow’d thee
A ladye wad borrow d thee—
I wad ta’en out thy twa grey een,
Put in twa een o’ tree.

“Had I but kenn’d, Tamlane,” she says,


“Before ye came frae hame—
I wad ta’en out your heart o’ flesh,
Put in a heart o’ stane.”

“Had I but had the wit yestreen


That I hae coft the day—
I’d paid my kane seven times to hell
Ere you’d been won away!”

(Condensed)
T H E W I F E O F U S H E R’ S W E L L

There lived a wife at Usher’s Well,


And a wealthy wife was she,
She had three stout and stalwart sons,
And sent them o’er the sea.

They hadna been a week from her,


A week but barely ane,
When word came back to the carline wife,
That her three sons were gane.

They hadna been a week from her,


A week but barely three,
When word came to the carline wife,
That her sons she’d never see.

“I wish the wind may never cease,


Nor fashes in the flood,
Till my three sons come hame to me,
In earthly flesh and blood!”—

It fell about the Martinmas,


When nights are lang and mirk,
The carline wife’s three sons cam hame,
And their hats were o’ the birk.

It neither grew in syke nor ditch,


Nor yet in ony sheugh;
But at the gates o’ Paradise,
That birk grew fair eneuch.
“Blow up the fire, my maidens!
Bring water from the well!
For a’ my house shall feast this night,
Since my three sons are well.”—

And she has made to them a bed,


She’s made it large and wide;
And she’s ta’en her mantle her about,
Sat down at the bedside.

Up then crew the red red cock,


And up and crew the gray;
The eldest to the youngest said,
“’Tis time we were away.”—

The cock he hadna craw’d but ance,


And clapp’d his wings at a’,
When the youngest to the eldest said,
“Brother, we must awa.—

“The cock doth craw, the day doth daw


The channerin’ worm doth chide;
Gin we be mist out o’ our place,
A sair pain we maun bide.

“Fare ye weel, my mother dear!


Fareweel to barn and byre!
And fare ye weel, the bonny lass,
That kindles my mother’s fire.”
S I R R O LA N D

Whan he cam to his ain luve’s bouir,


He tirled at the pin;
And sae ready was his fair fause luve
To rise and let him in.

“Oh! welcome, welcome, Sir Roland,” she says,


“Thrice welcome thou art to me;
For this night thou wilt feast in my secret bouir
And to-morrow we’ll wedded be.”

“This night is Hallow Eve,” he said,


“And to-morrow is Hallow-day;
And I dreamed a drearie dream yestreen,
That has made my heart fu’ wae.

“I dreamed a drearie dream yestreen,


And I wish it may come to gude;
I dreamed that ye slew my best grew hound,
And gied me his lappered blude.”

“Unbuckle your belt, Sir Roland,” she said,


“And set you safely down.”
“Oh! your chamber is very dark, fair maid,
And the night is wondrous lown.”

“Yes, dark dark is my secret bowir,


And lown the midnight may be;
For there is none waking in a’ this tower
But thou, my true love, and me.”
She has mounted on her true love’s steed,
By the ae light o’ the moon;
She has whipped him and spurred him,
And roundly she rade frae the toun.

She hadna ridden a mile o’ gate,


Never a mile but ane,
Whan she was aware of a tall young man,
Slow riding o’er the plain.

She turned her to the right about,


Then to the left turned she;
But aye ’tween her and the wan moonlight
That tall Knight did she see.

And he was riding burd alane,


On a horse as black as jet;
But tho’ she followed him fast and fell,
No nearer could she get.

“Oh stop! Oh stop! young man,” she said;


“For I in dule am dight;
Oh stop, and win a fair lady’s luve,
If you be a leal true Knight.”

But nothing did the tall Knight say,


And nothing did he blin;
Still slowly rode he on before
And fast she rade behind.

She whipped her steed, she spurred her steed,


Till his breast was all a foam;
But nearer unto that tall young Knight,
The Lady, she could not come.

“Oh, if you be a gay young Knight,


A ll I t b
As well I trow you be,
Pull tight your bridle reins, and stay
Till I come up to thee.”

But nothing did that tall Knight say,


And no whit did he blin,
Until he reached a broad river’s side
And there he drew his rein.

“Oh, is this water deep?” he said,


“As it is wondrous dun?
Or is it sic as a saikless maid
And a leal true Knight may swim?”

“The water it is deep,” she said,


“As it is wondrous dun;
But it is sic as a saikless maid
And a leal true Knight may swim.”

The Knight spurred on his tall black steed;


The Lady spurred on her brown;
And fast they rade into the flood,
And fast they baith swam down.

“The water weets my tae,” she said;


“The water weets my knee;
And hold up my bridle reins, Sir Knight,
For the sake of Our Ladye.”

“If I would help thee now,” he said,


“It were a deadly sin;
For I’ve sworn neir to trust a fair may’s word,
Till the water weets her chin.”

“Oh! the water weets my waist,” she said;


“Sae does it weet my skin;
And my aching heart rins round about,
The burn maks sic a din
The burn maks sic a din.

“The water is waxing deeper still,


Sae does it wax mair wide;
And aye the farther that we ride on,
Farther off is the other side.

“Oh, help me now, thou fause fause Knight!


Have pity on my youth;
For now the water jawes owre my head,
And it gurgles in my mouth.”

The Knight turned right and round about,


All in the middle stream;
And he stretched out his head to that Ladie
But loudly she did scream!

“Oh, this is Hallow-morn,” he said,


“And it is your bridal day;
But sad would be that gay wedding,
If bridegroom and bride were away.

“And ride on, ride on, proud Margaret!


Till the water comes o’er your bree;
For the bride maun ride deep and deeper yet,
Wha rides this ford wi’ me!

“Turn round, turn round, proud Margaret!


Turn ye round, and look on me!
Thou hast killed a true Knight under trust,
And his Ghost now links on with thee.”
T H E S K E L E TO N I N A R M O U R
“Speak! speak! thou fearful guest!
Who, with thy hollow breast
Still in rude armour drest,
Comest to daunt me!
Wrapt not in Eastern balms,
But with thy fleshless palms
Stretched, as if asking alms,
Why dost thou haunt me?”

Then, from those cavernous eyes


Pale flashes seemed to rise,
As when the Northern skies
Gleam in December;
And, like the water’s flow
Under December’s snow,
Came a dull voice of woe
From the heart’s chamber.

“I was a Viking old!


My deeds, though manifold,
No Skald in song has told,
No Saga taught thee!
Take heed, that in thy verse
Thou dost the tale rehearse,
Else dread a dead man’s curse;
For this I sought thee.

“Far in the Northern Land,


By the wild Baltic’s strand,
I, with my childish hand,
Tamed the gerfalcon;
And, with my skates fast-bound,
Skimmed the half-frozen Sound,
That the poor whimpering hound
Trembled to walk on.
“Oft to his frozen lair
Tracked I the grisly bear,
While from my path the hare
Fled like a shadow;
Oft through the forest dark
Followed the were-wolf’s bark,
Until the soaring lark
Sang from the meadow.

“But when I older grew,


Joining a corsair’s crew,
O’er the dark sea I flew
With the marauders.
Wild was the life we led;
Many the souls that sped,
Many the hearts that bled,
By our stern orders.

“Many a wassail-bout
Wore the long Winter out;
Often our midnight shout
Set the cocks crowing,
As we the Berserk’s tale
Measured in cups of ale,
Draining the oaken pail,
Filled to o’erflowing.

“Once as I told in glee


Tales of the stormy sea,
Soft eyes did gaze on me,
Burning yet tender;
And as the white stars shine
On the dark Norway pine,
On that dark heart of mine
Fell their soft splendour.

“I wooed the blue eyed maid


Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

ebookball.com

You might also like