Introduction to C Programming for the Microsoft NET Platform 1st Edition by Workbook pdf download
Introduction to C Programming for the Microsoft NET Platform 1st Edition by Workbook pdf download
_____ Follow the link below to get your download now _____
https://ebookball.com/product/introduction-to-c-programming-
for-the-microsoft-net-platform-1st-edition-by-
workbook-15360/
https://ebookball.com/product/introduction-to-c-programming-for-the-
microsoft-net-platform-1st-edition-by-administrator-15320/
https://ebookball.com/product/introduction-to-c-programming-for-the-
microsoft-net-platform-1st-edition-by-administrator-15220/
https://ebookball.com/product/introduction-to-c-programming-for-the-
microsoft-net-platform-1st-edition-by-administrator-15326/
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 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/
https://ebookball.com/product/microsoft-c-programming-for-the-
absolute-beginner-1st-edition-by-andrew-
harris-1931841160-9781931841160-15246/
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.
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.
Other product and company names mentioned herein may be the trademarks of their respective
owners.
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)
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
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.
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
Other documents randomly have
different content
and Archimedes among our modern mathematicians, shall give the
description and state the value; and, in his words, I shall conclude:—
‘Aliud agere, to be impertinently busy, doing that which
conduceth to no good purpose, is, in some respect, worse than to do
nothing. Of such industry we may understand that of the Preacher,
“The labour of the foolish wearieth every one of them.”’
A better conclusion could not be found for this Lay-Sermon: for
greater nonsense the author could not write, even though he were
inspired expressly for the purpose.
MR. COLERIDGE’S LAY-SERMON
TO THE EDITOR OF THE EXAMINER
Jan. 12, 1817.
Sir,
And for myself, Sir, I could not have been more delighted if I had
heard the music of the spheres. Poetry and Philosophy had met
together, Truth and Genius had embraced, under the eye and with
the sanction of Religion. This was even beyond my hopes. I returned
home well satisfied. The sun that was still labouring pale and wan
through the sky, obscured by thick mists, seemed an emblem of the
good cause: and the cold dank drops of dew that hung half melted on
the beard of the thistle, had something genial and refreshing in
them; for there was a spirit of hope and youth in all nature, that
turned everything into good. The face of nature had not then the
brand of Jus Divinum on it;
‘Like to that sanguine flower inscrib’d with woe.’
Now, Sir, what I have to complain of is this, that from reading your
account of the ‘Lay-Sermon,’ I begin to suspect that my notions
formerly must have been little better than a deception: that my faith
in Mr. Coleridge’s great powers must have been a vision of my youth,
that, like other such visions, must pass away from me; and that all
his genius and eloquence is vox et preterea nihil: for otherwise how
is it so lost to all common sense upon paper?
Again, Sir, I ask Mr. Coleridge, why, having preached such a
sermon as I have described, he has published such a sermon as you
have described? What right, Sir, has he or any man to make a fool of
me or any man? I am naturally, Sir, a man of a plain, dull, dry
understanding, without flights or fancies, and can just contrive to
plod on, if left to myself: what right, then has Mr. C., who is just
going to ascend in a balloon, to offer me a seat in the parachute, only
to throw me from the height of his career upon the ground, and dash
me to pieces? Or again, what right has he to invite me to a feast of
poets and philosophers, fruits and flowers intermixed,—immortal
fruits and amaranthine flowers,—and then to tell me it is all vapour,
and, like Timon, to throw his empty dishes in my face? No, Sir, I
must and will say it is hard. I hope, between ourselves, there is no
breach of confidence in all this; nor do I well understand how men’s
opinions on moral, political, or religious subjects can be kept a
secret, except by putting them in The Correspondent.[27]
Semper Ego Auditor.
BONAPARTE AND MULLER
THE CELEBRATED HISTORIAN OF SWITZERLAND
’Tis the editor of The Times, (poor man, his virtuous indignation
must cost him a great deal of pains and trouble!) as hard at it as ever,
about liberty and independence without respect of persons; in a most
woundy passion, we warrant now, at finding legitimacy at some of its
old tricks, caught flagranti delicto, so that the poor gentleman could
not hush the matter up, if he would, and would not, if he could, he is
a man of such a nice morality, and such high notions of honour;—
thrown into daily and hourly cold sweats and convulsions at the
mention of daily and hourly acts of tyranny and base submission to
it; flying into the same heats and hysterics as ever, for he has all the
reason now, that he used to say he had; laying it on, thick and
threefold, upon the magnanimous deliverers of Europe; still in the
old King Cambyses’ vein, ‘horrors on horror’s head accumulating’;
heaping up epithets and compound epithets of abuse against his new
friends, as he used to do against his old ones, till Mr. Koenig’s new
press groans under the weight of both together; ordering in a new set
of types with a new set of unheard-of nicknames to be applied
everlastingly to the present candidates for newspaper fame, as the
worn-out, feeble, and now insignificant ones of Monster, Tyrant,
Fiend, Upstart, Usurper, Rebel, Regicide, Traitor, Wretch, Villain,
Knave, Fool, Madman, Coward, Impostor, Unnatural Monster,
Bloody Tyrant, Hellish Fiend, Corsican Upstart, Military Usurper,
Wicked Rebel, Impious Regicide, Perfidious Traitor, Vile Wretch,
Base Villain, Low-born Knave, Rank Fool, Egregious Madman,
Notorious Coward, Detestable Impostor, were applied to the old;
swearing as he picks his way to court along the streets, (so that the
people ask who the honest, angry gentleman is) that Ferdinand alone
has done more acts of baseness, treachery, cruelty, oppression,
infamy, and ingratitude, in one year, than Napoleon did in his whole
reign; teaching a parrot to call jade and rogue to all legitimate
princes and princesses that deserve it, as he used himself to rail at all
the illegitimate ones, whether they deserved it or not; repeating over
and over, till he is black in the face, Dr. Slop’s curse upon the Allies
and their proceedings; cursing them in Spain, cursing them in Italy,
cursing them in Genoa, cursing them in Saxony, cursing them in
Norway, cursing them in Finland, cursing them in Poland, cursing
them in France, cursing them every where as they deserve, and as the
people every where curse them; sending the Pope and the Inquisition
to the Devil; swooning at the extinction of Spanish liberty under the
beloved Ferdinand; going into a shivering fit at the roasting of
Protestants under Louis the Desired; biting his lips at Lord
Castlereagh’s Letter to Mon Prince; horror-struck at the transfer of
so many thousand souls, like so many head of horned cattle, from
one legitimate proprietor of the species to another, after all his
vapouring about the liberties of the people and the independence of
states; learned and lofty, sad and solemn, on the Convention of Paris;
looking big at the imposing attitude of Russia, and going stark
staring mad at the application of the torture and the thumb-screw to
the brave Cortes; gnashing his teeth, rolling his eyes, and dashing his
head against the wall, at the total falsification, and overthrow of
every one of his hopes and his prognostics in every corner of Europe
where the Allies have got footing, and there is no corner which they
have not got under their feet, like a toad under a harrow; and roaring
out like Perillus’s bull against the partitions and repartitions of the
coalesced Sovereigns, their invasions, conquests, seizures, transfers
of men and lands; the murders, massacres, imprisonments,
pillagings, frauds, treacheries, breaches of written treaties and of
verbal promises; usurpations, pretensions, and overt acts of
legitimacy, since it was restored to itself, to one and the self-same
tune that he used to lift up his voice, ‘his most sweet voice,’ against
Bonaparte’s wars and conquests, till the Stock Exchange was stunned
with the clamour, and Mr. Walter well-nigh fainted! The only fault of
this account is, that not one word of it is true.
‘Thy stone, oh Sisyphus, stands still:
‘Ixion rests upon his wheel!’
None in the world, any more than the poor player in Hamlet, who
tried to ‘work his soul to his conceit, tears in his eyes, distraction in
his looks,’ because it was his cue to do so. He blusters and hectors,
and makes a noise to hide his want of consistency, as cowards turn
bullies to hide their want of courage. He is virulent and vulgar in
proportion as he is insincere; and yet it is the only way in which he
can seem himself not to be a hypocrite. He has no blind prejudices to
repose on; no unshaken principles to refer to; no hearty attachment
to altars or to thrones. You see the Jacobinical leaven working in
every line that he writes, and making strange havoc with his present
professions. He would cashier Louis and Ferdinand, Alexander and
Frederick, to-morrow, and hurl them headlong from their thrones
with a stroke of his pen, for not complying with any one of his
favourite dogmas. He has no regard for any thing but his own will; no
feeling of any thing but of hatred to the cause he has deserted, and of
the necessity of keeping from his mind, by every demonstration of
outward scorn and horror, whatever might recal his old,
unprofitable, exploded errors. His hatred and dread of the principles
of others, proceeds from his greater hatred and dread of his own. The
spectre of his former opinions glares perpetually near him, and
provokes his frantic zeal. For close behind him stalks the ghost of the
French Revolution, that unfortunate Miss Bailey of modern
politicians, their mistress and their saint, what time
——‘Society became their glittering bride
‘And airy hopes their children,’—
which, if he was once to turn round, would stare him in the face with
self-conviction, and make his pen drop from his hands. It is this
morbid conflict with his own feelings that many persons do not know
what to make of, and which gives such a tragic, and at the same time,
ludicrous air to his writings. He is obliged to wink and shut his
apprehension up, so that he is blind, stupidly blind to all that makes
against him, and all that makes for him. His understanding seems to
labour under a quinsy; and instead of the little bonnet rouge of 1793,
wears a huge pair of Bourbon blinkers for 1816. Hence the endless
inconsistencies in which he involves himself; and as it is his self-will
that makes him insensible to all objections, it is the same headstrong
obstinacy which makes him regardless of contradictions, and proof
against conviction.
In a word, to conclude this part of the subject, the writer of The
Times is governed entirely by his will; and this faculty is strong, and
bears sway in him, as all other principles are weak. He asserts a fact
the louder, as he suspects it to be without proof: and defends a
measure the more lustily, as he feels it to be mischievous. He listens
only to his passions and his prejudices, not to truth or reason. Prove
to him that any thing is the most idle fiction that ever was invented,
and he will swear to it: prove to him that it is fraught with
destruction to the liberties of mankind in all places and in all time to
come, and he is your own for ever. Sed hæc hactenus. Goethe has
given to one of his heroes this motto—‘Mad but wise.’ We would give
the following to the hero of The Times—Mad but not wise.
The meaning of which passage is, that it is easier to sail with the
stream, than to strive against it. Our classical reformers should have
known this passage in Virgil. They should have known themselves
too; but they did not. ‘Let no man go about to cozen honesty,’ or to be
a knave by halves. The man, as well as the woman, who deliberates
between his principle and the price of its sacrifice, is lost. The same
rule holds with respect to literary as to any other kind of prostitution.
It is the first false step that always costs the most; and which is, for
that reason, always fatal. It requires an effort of resolution, or at least
obstinate prejudice, for a man to maintain his opinions at the
expense of his interest. But it requires a much greater effort of
resolution for a man to give up his interest to recover his
independence; because, with the consistency of his character, he has
lost the habitual energy of his mind, and the indirect aid of prejudice
and obstinacy, which are sometimes as useful to virtue as they are to
vice. A man, in adhering to his principles in contradiction to the
decisions of the world, has many disadvantages. He has nothing to
support him but the supposed sense of right; and any defect in the
justice of his cause, or the force of his conviction, must prey on his
mind, in proportion to the delicacy and sensitiveness of its texture:
he is left alone in his opinions; and, like Sam Sharpset, in Mr.
Morton’s new comedy (when he gets into solitary confinement in the
spunging-house,) grows nervous, melancholy, fantastical, and would
be glad of somebody or anybody to sympathize with him; but when
he has once gone over to the strong side of the question (perhaps
from these very scruples of conscience, suggested by weakness and
melancholy, as ‘the Devil is very potent with such spirits, and abuses
them to damn them’) our wavering sceptic no longer finds the same
scruples troublesome; the air of a court promotes their digestion
wonderfully; the load on his conscience falls off at the foot of the
throne. The poet-laureate, standing with his laurel-wreath amidst
‘Britain’s warriors, her statesmen, and her fair,’ thinks no more or
says no more about the patriots of Spain pining in dungeons or
consigned to the torture, though it was his zeal, his virtuous,
patriotic, romantic, disinterested zeal for them, which brought them
there, and him to court. His Prince’s smile soothes the involuntary
pang of sympathy rising in his breast; and Mr. Croker’s whispers
drown their agonizing shrieks. When we are at Rome, we must do as
the people at Rome do. A man in a crowd must go along with the
crowd, and cannot stop to pick his way; nor need he be so particular
about it. He has friends to back him: appearances are for him; the
world is on his side; his interest becomes surety for his honour, his
vanity makes him blind to objections, or overrules them, and he is
not so much ashamed of being in the wrong in such good company.
It requires some fortitude to oppose one’s opinion, however right, to
that of all the world besides; none at all to agree with it, however
wrong. Nothing but the strongest and clearest conviction can support
a man in a losing minority: any excuse or quibble is sufficient to salve
his conscience, when he has made sure of the main chance, and his
understanding has become the stalking-horse of his ambition. It is
this single circumstance of not being answerable for one’s opinions
one’s-self, but being able to put them off to other men’s shoulders in
all crowds and collections of men, that is the reason of the violence of
mobs, the venality of courts, and the corruption of all corporate
bodies. It is also the reason of the degeneracy of modern apostates
and reformed Jacobins, who find the applause of their king and
country doubly cheering after being so long without it, and who go all
lengths in adulation and servility, to make up for their former
awkward singularity.
Many of the persons we have known, who have deserted the cause
of the people to take a high tone against those who did not chuse to
desert it, have been lawyers or poets. The last took their leave of it by
a poetic license; the first slunk out of it by some loop-hole of the law.
We shall say a word of each.
‘Our’s is an honest employment,’ says Peachum; ‘and so is a
lawyer’s.’ It is a lawyer’s business to confound truth and falsehood in
the minds of his hearers; and the natural consequence is, that he
confounds them in his own. He takes his opinion of right and wrong
from his brief: his soul is in his fee. His understanding is upon the
town, and at the service of any cause that is paid for before-hand. He
is not a hired suborner of facts, but of reasons; and though he would
not violate the sacred obligation of an oath, as Lord Ellenborough
calls it, by swearing that black is white, he holds himself at all times
in readiness and bound in duty, to prove it so. He will not swear to
an untruth to get himself hanged, but he will assert it roundly by the
hour together to hang other persons, however innocent,—if he finds
it in his retainer. We do not wish to say any thing illiberal of any
profession or set of men in the abstract. But we think it possible, that
they who are employed to argue away men’s lives at a venture in a
court of justice, may be tempted to write them away deliberately in a
newspaper. They who find it consistent with their honour to do this
under the sanction of the court, may find it to their interest to do the
same thing at the suggestion of a court. A lawyer is a sophist by
profession; that is, a person who barters his opinion, and speaks
what he knows to be false in defence of wrong, and to the prejudice
of right. Not only the confirmed habit of looking at any side of a
question with a view to make the worse appear the better reason,
from a motive always foreign to the question itself, must make truth
and falsehood sit loose upon him, and lead him to ‘look on both
indifferently,’ as his convenience prompts; but the quibbles and
quillets of the law give a handle to all that is petty and perverse in his
understanding, and enable him to tamper with his principles with
impunity. Thus the intricacy and verbal distinctions of the profession
promote the practical duplicity of its professors; and folly and
knavery become joint securities for one another. The bent of a
lawyer’s mind is to pervert his talents, if he has any, and to keep
down his feelings, if they are at all in his way. He lives by forging and
uttering counterfeit pretexts; he says not what he believes to be true,
but any thing that by any trick or sleight he can make others believe;
and the more petty, artificial, and far-fetched the contrivance, the
more low, contemptible, and desperate the shift, the more is he
admired and cried up in his profession. A perfect lawyer is one whose
understanding always keeps pace with the inability of words to keep
pace with ideas: who by natural conformation of mind cannot get
beyond the letter to the spirit of any thing; who, by a happy infirmity
of soul, is sure never to lose the form in grasping at the substance.
Such a one is sure to arrive at the head of his profession! Look at the
lawyers in the House of Commons (of course at the head of their
profession)—look at Garrow. We have heard him stringing
contradictions there with the fluency of water, every third sentence
giving the lie to the two former; gabbling folly as if it were the last
opportunity he might ever have, and as regularly put down as he rose
up—not for false statements, not for false reasoning, not for
common-place absurdities or vulgar prejudices, (there is enough of
these to be found there without going to the bar), but for such things
as nobody but a lawyer could utter, and as nobody (not even a
lawyer) could believe. The only thing that ever gave us a good
opinion of the House of Commons was to see the contempt with
which they treat lawyers there. The reason is, that no one there but a
lawyer fancies himself holding a brief in his hand as a carte-blanche
for vanity and impertinence—no one else thinks he has got an ad
libitum right to express any absurd or nonsensical opinions he
pleases, because he is not supposed to hold the opinions he expresses
—no one else thinks it necessary to confound the distinctions of
common-sense to subject them to those of the law (even Lord
Castlereagh would never think of maintaining it to be lawful to
detain a person kidnapped from France, on the special plea, that the
law in that case not provided had not declared it lawful to detain
persons so kidnapped, if not reclaimed by their own country)—no
one else thinks of huddling contradictions into self-evident truths by
legal volubility, or of sharpening nonsense into sense by legal
acuteness, or of covering shallow assumptions under the solemn
disguises of the long robe. The opinions of the gentlemen of the bar
go for nothing in the House of Commons: but their votes tell; and are
always sure—in the end! The want of principle makes up for the want
of talent. What a tool in the hands of a minister is a whole profession,
habitually callous to the distinctions of right and wrong, but perfectly
alive to their own interest, with just ingenuity enough to be able to
trump up some fib or sophistry for or against any measure, and with
just understanding enough to see no more of the real nature or
consequences of any measure than suits their own or their
employer’s convenience! What an acquisition to ‘the tried wisdom of
parliament’ in the approaching hard season!
But all this, though true, seems to fall short of the subject before
us. The weak side of the professional character is rather an
indifference to truth and justice, than an outrageous and inveterate
hatred to them. They are chargeable, as a general class of men, with
levity, servility, and selfishness; but it seems to be quite out of their
character to commence furious and illiberal fanatics against those
who have more principle than themselves. But not when this
character is ingrafted on that of a true Jacobin renegado. Such a
person (and no one else) would be fit to write the leading article in
The Times. It is this union of rare accomplishments (there seems,
after all, to be nothing contradictory in the coalition of the vices) that
enables that nondescript person to blend the violence of the bravo
with the subtlety of a pettifogging attorney—to interlard his furious
appeals to the lowest passions of the middle and upper classes, with
nice points of law, reserved for the opinion of the adepts in the
profession—to appeal to the passions of his city readers when any
thing wrong is to be done, and to their cooler and dispassionate
judgments when any thing right is to be done—that makes him stick
(spell-bound) to the letter of the law when it is in his favour, and set
every principle of justice and humanity at defiance when it interferes
with his pragmatical opinion—that makes him disregard all decency
as well as reason out of ‘the lodged hatred’ he bears to the cause he
has deserted, and to all who have not, like himself, deserted it—that
made him urge the foul death of the brave Marshal Ney, by putting a
legal interpretation on a military convention—that tempted him to
make out his sanguinary list of proscribed rebels and regicides (he
was not for making out any such list in the year 1793, nor long after
the event he now deplores with such well-timed indignation)—that
makes him desperately bent on hanging wretches at home in cobweb
chains spun from his own brains—that makes him stake the liberty of
nations or the independence of states on a nickname or a law-quillet,
as his irritable humour or professional habits prevail—that sets him
free from all restraints or deference to others in forming his own
opinions, and which would induce him to subject all the rest of the
world to his unprincipled and frantic dogmas, by entangling them in
the quirks and technicalities of the law! No one else would heroically
consign a whole continent to the most odious and despicable slavery
in the world, on the strength of a flaw in a proclamation: or call that
piece of diplomatic atrocity, the declaration of the 25th of March, a
delicious declaration. Such a man might sell his country, or enslave
his species, and justify it to his conscience and the world by some
law-term! Such men are very dangerous, unless when they are tied
up in the forms of a profession, where form is opposed to form,
where no-meaning baffles want of sense, and where no great harm is
done, because there is not much to do: but when chicane and want of
principle are let loose upon the world, ‘with famine, sword, and fire
at their heels, leashed in like hounds,’ when they have their prey
marked out for them by the passions, when they are backed by force
—when the pen of the Editor of The Times is seconded by eleven
hundred thousand bayonets—then such men are very mischievous.
‘My soul, turn from them: turn we to survey’ where poetry, joined
hand in hand with liberty, renews the golden age in 1793, during the
reign of Robespierre, which was hardly thought a blot in their
escutcheon, by those who said and said truly, for what we know, that
he destroyed the lives of hundreds, to save the lives of thousands:
(Mark; then, as now, ‘Carnage was the daughter of Humanity.’ It is
true, these men have changed sides, but not parted with their
principles, that is, with their presumption and egotism)—let us turn
where Pantisocracy’s equal hills and vales arise in visionary pomp,
where Peace and Truth have kissed each other ‘in Philarmonia’s
undivided dale’; and let us see whether the fictions and the forms of
poetry give any better assurance of political consistency than the
fictions and forms of law.
The spirit of poetry is in itself favourable to humanity and liberty:
but, we suspect, not in times like these—not in the present reign. The
spirit of poetry is not the spirit of mortification or of martyrdom.
Poetry dwells in a perpetual Utopia of its own, and is, for that reason,
very ill calculated to make a Paradise upon earth, by encountering
the shocks and disappointments of the world. Poetry, like the law, is
a fiction; only a more agreeable one. It does not create difficulties
where they do not exist; but contrives to get rid of them, whether
they exist or not. It is not entangled in cobwebs of its own making,
but soars above all obstacles. It cannot be ‘constrained by mastery.’ It
has the range of the universe; it traverses the empyreum, and looks
down on nature from a higher sphere. When it lights upon the earth,
it loses some of its dignity and its use. Its strength is in its wings; its
element the air. Standing on its feet, jostling with the crowd, it is
liable to be overthrown, trampled on, and defaced; for its wings are
of a dazzling brightness, ‘heaven’s own tinct,’ and the least soil upon
them shews to disadvantage. Sunk, degraded as we have seen it, we
shall not insult over it, but leave it to time to take out the stains,
seeing it is a thing immortal as itself. ‘Being so majestical, we should
do it wrong to offer it but the shew of violence.’ But the best things,
in their abuse, often become the worst; and so it is with poetry when
it is diverted from its proper end. Poets live in an ideal world, where
they make every thing out according to their wishes and fancies.
They either find things delightful, or make them so. They feign the
beautiful and grand out of their own minds, and imagine all things to
be, not what they are, but what they ought to be. They are naturally
inventors, creators not of truth but beauty: and while they speak to
us from the sacred shrine of their own hearts, while they pour out the
pure treasures of thought to the world, they cannot be too much
admired and applauded: but when, forgetting their high calling, and
becoming tools and puppets in the hands of others, they would pass
off the gewgaws of corruption and love-tokens of self-interest, as the
gifts of the Muse, they cannot be too much despised and shunned.
We do not like novels founded on facts, nor do we like poets turned
courtiers. Poets, it has been said, succeed best in fiction: and they
should for the most part stick to it. Invention, not upon an imaginary
subject, is a lie: the varnishing over the vices or deformity of actual
objects, is hypocrisy. Players leave their finery at the stage-door, or
they would be hooted: poets come out into the world with all their
bravery on, and yet they would pass for bonâ fide persons. They lend
the colours of fancy to whatever they see: whatever they touch
becomes gold, though it were lead. With them every Joan is a lady:
and kings and queens are human. Matters of fact they embellish at
their will, and reason is the plaything of their passions, their caprice,
or interest. There is no practice so base of which they will not become
the panders: no sophistry of which their understanding may not be
made the voluntary dupe. Their only object is to please their fancy.
Their souls are effeminate, half man and half woman: they want
fortitude, and are without principle. If things do not turn out
according to their wishes, they will make their wishes turn round to
things. They can easily overlook whatever they do not approve, and
make an idol of any thing they please. The object of poetry is to
please: this art naturally gives pleasure, and excites admiration.
Poets, therefore, cannot do well without sympathy and flattery. It is,
accordingly, very much against the grain that they remain long on
the unpopular side of the question. They do not like to be shut out
when laurels are to be given away at court—or places under
government to be disposed of, in romantic situations in the country.
They are happy to be reconciled on the first opportunity to prince
and people, and to exchange their principles for a pension. They have
not always strength of mind to think for themselves; nor honesty
enough to bear the unjust stigma of the opinions they have taken
upon trust from others. Truth alone does not satisfy their pampered
appetites, without the sauce of praise. To prefer truth to all other
things, it requires that the mind should have been at some pains in
finding it out, and that it should feel a severe delight in the
contemplation of truth, seen by its own clear light, and not as it is
reflected in the admiring eyes of the world. A philosopher may
perhaps make a shift to be contented with the sober draughts of
reason: a poet must have the applause of the world to intoxicate him.
Milton was however a poet, and an honest man; he was Cromwell’s
secretary.
We have here described the spirit of poetry when it comes in
contact with the spirit of the world. Let us see what results from it
when it comes in contact with the spirit of Jacobinism. The spirit of
Jacobinism is essentially at variance with the spirit of poetry: it has
‘no figures nor no fantasies,’ which the prejudices of superstition or
the world draw in the brains of men: ‘no trivial fond records’: it levels
all distinctions of art and nature: it has no pride, pomp, or
circumstance, belonging to it; it converts the whole principle of
admiration in the poet (which is the essence of poetry) into
admiration of himself. The spirit of Jacobin poetry is rank egotism.
We know an instance. It is of a person who founded a school of
poetry on sheer humanity, on ideot boys and mad mothers, and on
Simon Lee, the old huntsman. The secret of the Jacobin poetry and
the anti-jacobin politics of this writer is the same. His lyrical poetry
was a cant of humanity about the commonest people to level the
great with the small; and his political poetry is a cant of loyalty to
level Bonaparte with kings and hereditary imbecility. As he would
put up the commonest of men against kings and nobles, to satisfy his
levelling notions, so for the same reason, he would set up the
meanest of kings against the greatest of men, reposing once more on
the mediocrity of royalty. This person admires nothing that is
admirable, feels no interest in any thing interesting, no grandeur in
any thing grand, no beauty in any thing beautiful. He tolerates
nothing but what he himself creates; he sympathizes only with what
can enter into no competition with him, with ‘the bare earth and
mountains bare, and grass in the green field.’ He sees nothing but
himself and the universe. He hates all greatness, and all pretensions
to it but his own. His egotism is in this respect a madness; for he
scorns even the admiration of himself, thinking it a presumption in
any one to suppose that he has taste or sense enough to understand
him. He hates all science and all art; he hates chemistry, he hates
conchology; he hates Sir Isaac Newton; he hates logic, he hates
metaphysics, which he says are unintelligible, and yet he would be
thought to understand them; he hates prose, he hates all poetry but
his own; he hates Shakespeare, or what he calls ‘those interlocutions
between Lucius and Caius,’ because he would have all the talk to
himself, and considers the movements of passion in Lear, Othello, or
Macbeth, as impertinent, compared with the Moods of his own
Mind; he thinks every thing good is contained in the ‘Lyrical Ballads,’
or, if it is not contained there, it is good for nothing; he hates music,
dancing, and painting; he hates Rubens, he hates Rembrandt, he
hates Raphael, he hates Titian, he hates Vandyke; he hates the
antique; he hates the Apollo Belvidere; he hates the Venus de
Medicis. He hates all that others love and admire but himself. He is
glad that Bonaparte is sent to St. Helena, and that the Louvre is
dispersed for the same reason—to get rid of the idea of any thing
greater, or thought greater than himself. The Bourbons, and their
processions of the Holy Ghost, give no disturbance to his vanity; and
he therefore gives them none.
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.
ebookball.com