Download ebooks file CLR Via C Applied Microsoft Net Framework 2 0 Programming 2nd ed. Edition Jeffrey Richter all chapters
Download ebooks file CLR Via C Applied Microsoft Net Framework 2 0 Programming 2nd ed. Edition Jeffrey Richter all chapters
com
https://ebookname.com/product/clr-via-c-applied-microsoft-
net-framework-2-0-programming-2nd-ed-edition-jeffrey-
richter/
OR CLICK BUTTON
DOWNLOAD EBOOK
https://ebookname.com/product/microsoft-windows-
powershell-2-0-programming-for-the-absolute-beginner-2nd-ed-edition-
jerry-lee-ford/
ebookname.com
https://ebookname.com/product/programming-in-objective-c-2-0-2nd-
edition-stephen-g-kochan/
ebookname.com
https://ebookname.com/product/pro-dynamic-net-4-0-applications-data-
driven-programming-for-the-net-framework-1st-edition-carl-ganz-jr/
ebookname.com
https://ebookname.com/product/integrated-principles-of-zoology-
fourteenth-edition-cleveland-p-hickman/
ebookname.com
Daylighting Architecture and Lighting Design 1st Edition
Peter Tregenza
https://ebookname.com/product/daylighting-architecture-and-lighting-
design-1st-edition-peter-tregenza/
ebookname.com
https://ebookname.com/product/bon-appetit-aug-2017-bon-appetit/
ebookname.com
https://ebookname.com/product/broadband-communications-via-high-
altitude-platforms-1st-edition-david-grace/
ebookname.com
https://ebookname.com/product/viking-longship-keith-durham/
ebookname.com
https://ebookname.com/product/research-methods-in-anthropology-
qualitative-and-quantitative-approaches-fourth-edition-h-russell-
bernard/
ebookname.com
Field Guide to Freshwater Fishes of California Revised
Edition Samuel M. Mcginnis
https://ebookname.com/product/field-guide-to-freshwater-fishes-of-
california-revised-edition-samuel-m-mcginnis/
ebookname.com
Additional Resources for Developers
Published and Forthcoming Titles on Microsoft Visual Studio 2005 and SQL Server 2005
Visual Basic 2005 Programming Microsoft Programming Microsoft Working with Microsoft
ASP.NET 2.0 SQL Server 2005 Visual Studio® 2005
Microsoft® Visual Basic® 2005 Core Reference Team System
Andrew J. Brust, Stephen
Express Edition: Richard Hundhausen
Dino Esposito Forte, and William H. Zack
Build a Program Now! 0-7356-2185-3
0-7356-2176-4 0-7356-1923-9
Patrice Pelland
0-7356-2213-2
Programming Microsoft Inside Microsoft Other
Microsoft Visual Basic 2005
ASP.NET 2.0 Applications SQL Server 2005: Developer Topics
Advanced Topics The Storage Engine
Step by Step Software Estimation:
Dino Esposito Kalen Delaney
Michael Halvorson 0-7356-2177-2 Demystifying the Black Art
0-7356-2105-5
0-7356-2131-4 Steve McConnell
0-7356-0535-1
Programming Microsoft Database Inside Microsoft
SQL Server 2005:
Visual Basic 2005: Microsoft ADO.NET 2.0 The Security
T-SQL Programming
The Language Step by Step Development Lifecycle
Itzik Ben-Gan, et al.
Francesco Balena Rebecca M. Riordan Michael Howard
0-7356-2197-7
0-7356-2183-7 0-7356-2164-0 Steve Lipner
Inside Microsoft 0-7356-2214-0
C# 2005 Programming Microsoft
SQL Server 2005:
ADO.NET 2.0 Writing Secure Code,
Microsoft Visual C#® 2005 Core Reference
Query Tuning and
Optimization Second Edition
Express Edition:
David Sceppa Michael Howard
Build a Program Now! Kalen Delaney
0-7356-2206-X David LeBlanc
Patrice Pelland 0-7356-2196-9
0-7356-1722-8
0-7356-2229-9
Programming Microsoft
Inside Microsoft
ADO.NET 2.0 Code Complete,
Microsoft Visual C# 2005 SQL Server 2005:
Advanced Topics Second Edition
Step by Step T-SQL Querying
Glenn Johnson Steve McConnell
John Sharp Itzik Ben-Gan, et al.
0-7356-2141-1 0-7356-1967-0
0-7356-2129-2 0-7356-2313-9
Explore our full line of learning resources at: microsoft.com/mspress and microsoft.com/learning
Acclaim for the First Edition: Applied
Microsoft .NET Framework Programming
The time Jeffrey spent with the .NET Framework is evident in this well-written and
informative book.
— Eric Rudder (senior vice president, developer and platform evangelism, Microsoft)
Jeff has worked directly with the folks who built the CLR [common language runtime]
on a daily basis and has written the finest book on the internals of the CLR that you'll
find anywhere.
— Dennis Angeline (lead program manager, common language runtime, Microsoft)
Jeff brings his years of Windows programming experience and insight to explain how
the .NET Framework really works, why we built it the way we did, and how you can
get the most out of it.
— Brad Abrams (lead program manager, .NET Framework, Microsoft)
Jeff Richter brings his well-known flair for explaining complicated material clearly,
concisely and accurately to the new areas of the C# language, the .NET Framework,
and the .NET common language runtime. This is a must-have book for anyone want-
ing to understand the whys and hows behind these important new technologies.
— Jim Miller (lead program manager, common language runtime kernel, Microsoft)
Easily the best book on the common language runtime. The chapter on the CLR gar-
bage collector [Chapter 19 in the first edition, now Chapter 20] is awesome. Jeff not
only describes the theory of how the garbage collector works but also discusses aspects
of finalization that every .NET developer should know.
— Mahesh Prakriya (lead program manager, common language runtime team, Microsoft)
This book is an accurate, in-depth, yet readable exploration of the common language
runtime. It's one of those rare books that seems to anticipate the reader's question and
supply the answer in the very next paragraph. The writing is excellent.
— Jim Hogg (program manager, common language runtime team, Microsoft)
Just as Programming Applications for Microsoft Windows became the must-have book for
Win32 programmers, Applied Microsoft .NET Programming promises to be the same for
serious .NET Framework programmers. This book is unique in its bottom-up approach
to understanding .NET Framework programming. By providing the reader with a solid
understanding of lower-level CLR concepts, Jeff provides the groundwork needed to
write solid, secure, high-performing managed code applications quickly and easily.
— Steven Pratschner (program manager, common language runtime team, Microsoft)
123456789 QWT 8 7 6
To Aidan
You have been an inspiration to me and have taught me to play and have fun.
Watching you grow up has been so rewarding and enjoyable for me. I feel lucky to be
able to partake in your life; it has made me a better person.
Contents at a Glance
Part I CLR Basics
1 The CLR's Execution Model 3
2 Building, Packaging, Deploying, and Administering
Applications and Types 33
3 Shared Assemblies and Strongly Named Assemblies 65
vii
viii Contents at a Glance
Microsoft
f is interested in hearing yourr feedbac
feedbackk about this publication so we can
What do you think
k of
o f this
this book? continually improve ourr books
bookks and learning resources forr you
you.. To participate in a brief
We want to hear from you! online survey, please visit www.microsoft.com/learning/booksurvey/
ix
x Contents
9 Properties 213
Parameterless Properties 213
Defining Properties Intelligently 217
Parameterful Properties 218
The Performance of Calling Property Accessor Methods 223
Property Accessor Accessibility 224
Generic Property Accessor Methods 224
10 Events 225
Designing a Type That Exposes an Event 226
Step #1: Define a type that will hold any additional information that
should be sent to receivers of the event notification 227
Step #2: Define the event member 227
Step #3: Define a method responsible for raising the event
to notify registered objects that the event has occurred 229
Step #4: Define a method that translates the input
into the desired event 230
xii Contents
13 Arrays 295
Casting Arrays 297
All Arrays Are Implicitly Derived from System.Array 300
All Arrays Implicitly Implement IEnumerable, I C o l l e c t i o n , and I L i s t 300
Contents xiii
14 Interfaces 311
Class and Interface Inheritance 312
Defining an Interface 312
Inheriting an Interface 314
More About Calling Interface Methods 316
Implicit and Explicit Interface Method Implementations
(What's Happening Behind the Scenes) 317
Generic Interfaces 319
Generics and Interface Constraints 321
Implementing Multiple Interfaces That Have the Same
Method Name and Signature 322
Improving Compile-Time Type Safety with Explicit Interface
Method Implementations 323
Be Careful with Explicit Interface Method Implementations 325
Design: Base Class or Interface? 328
15 Delegates 331
A First Look at Delegates 331
Using Delegates to Call Back Static Methods 334
Using Delegates to Call Back Instance Methods 335
Demystifying Delegates 336
Using Delegates to Call Back Many Methods (Chaining) 340
C#'s Support for Delegate Chains 345
Having More Control over Delegate Chain Invocation 345
C#'s Syntactical Sugar for Delegates 347
Syntactical Shortcut #1: No Need to Construct a Delegate Object 348
Syntactical Shortcut #2: No Need to Define a Callback Method 348
Syntactical Shortcut #3: No Need to Specify Callback
Method Parameters 351
Syntactical Shortcut #4: No Need to Manually Wrap Local Variables
in a Class to Pass Them to a Callback Method 351
Delegates and Reflection 354
xiv Contents
16 Generics 359
Generics in the Framework Class Library 364
Wintellect's Power Collections Library 365
Generics Infrastructure 366
Open and Closed Types 367
Generic Types and Inheritance 369
Generic Type Identity 371
Code Explosion 372
Generic Interfaces 372
Generic Delegates 373
Generic Methods 374
Generic Methods and Type Inference 375
Generics and Other Members 377
Verifiability and Constraints 377
Primary Constraints 380
Secondary Constraints 381
Constructor Constraints 382
Other Verifiability Issues 383
Index 649
Aidan has also known me his whole life, and I thought it might be appropriate for him to
include a few words about me in the foreword. After explaining to Aidan what a foreword is
and what I'd like him to write about, I let him sit on my lap in my office and type away. At first
he seemed to be experiencing writer's block, so 1 started him off, but then he took it from
there. As his father, I am impressed with his eloquent prose. 1 feel that his thoughts are heart-
felt and truly reflect how he feels about me and the .NET Framework.
The .NET Framework is a fantastic technology that makes developers more productive
and my daddy explains it in such a way that
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiioiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiit
'o c.kll/k; bnyu, hjk jvc bmjkmjmbm , yfg b bvxujjv5rbhig ikhjvc bkti h thbt gl;hn
;gkkjgfhjj nbioljhlnfmhklknjmvgib
9h
- Aidan Richter, December 19, 2005
xix
Introduction
Over the years, Microsoft has introduced various technologies to help developers architect
and implement code. Many of these technologies offer abstractions that allow developers to
think about solving their problems more and think about the machine and operating system
less. Here are some examples:
• The Microsoft Foundation Class library (MFC) offered a C++ abstraction over GUI
programming. Using MFC, developers could focus more on what their program should
do and they can focus less on message loops, window procedures, window classes, and
so on.
• With Microsoft Visual Basic 6 and earlier, developers also had an abstraction that made
it easier to build GUI applications. This abstraction technology served a purpose similar
to MFC but was geared towards developers programming in Basic, and it gave different
emphasis to the various parts of GUI programming.
• Microsoft's ASP technology offered an abstraction allowing developers to build active
and dynamic Web sites by using Visual Basic Script or JScript. ASP allowed developers to
focus more on the Web page content and less on the network communications.
• Microsoft's Active Template Library (ATL) offered an abstraction allowing developers to
more easily create components that could be used by developers working in multiple
programming languages.
You'll notice that each of these abstraction technologies was designed to make it easier for
developers focusing on a particular scenario such as GUI applications, Web applications, or
components. If a developer wanted to build a Web site that used a component, the developer
would have to learn multiple abstraction technologies: ASP and ATL. Furthermore, the devel-
oper would have to be proficient in multiple programming languages since ASP required
either Visual Basic Script or JScript, and ATL required C++. So while these abstraction technol-
ogies were created to help us, they were still requiring developers to learn a lot. And fre-
quently, the various abstraction technologies weren't originally designed to work together,
so developers fought integration issues.
Microsoft's goal for the .NET Framework is to fix all of this. You'll notice that each of the afore-
mentioned abstraction technologies was designed to make a particular application scenario
easier. With the .NET Framework, Microsoft's goal is not to provide an abstraction technology
for developers building a particular kind of application, Microsoft's goal is to provide an
abstraction technology for the platform or Microsoft Windows operating system itself. In
other words, the .NET Framework raises the abstraction level for any and all kinds of applica-
tions. This means that there is a single programming model and set of APIs that developers
will use regardless of whether they are building a console application, graphical application,
Web site, or even components for use by any of these application types.
xxi
xxii Introduction
Another goal of the .NET Framework is to allow developers to work in the programming lan-
guage of their choice. It is now possible to build a Web site and components that all use a sin-
gle language such as Visual Basic or Microsoft's relatively new C# programming language.
Having a single programming model, API set, and programming language is a huge improve-
ment in abstraction technologies, and this goes a very long way toward helping developers.
However, it gets even better because these features also mean that integration issues also go
away, which greatly improves testing, deployment, administration, versioning, and re-usability
and re-purposing of code. Now that I have been using the .NET Framework myself for several
years, I can tell you for sure that I would never go back to the old abstraction technologies and
the old ways of software development. If I were being forced to do this, I'd change careers!
This is how painful it would be for me now. In fact, when I think back to all of the program-
ming I did using the old technologies, I just can't believe that we programmers put up with it
for as long as we did.
The Framework Class Library provides an object-oriented API set that all application models
will use. It includes type definitions that allow developers to perform file and network I/O,
scheduling tasks on other threads, drawing shapes, comparing strings, and so on. Of course,
all of these type definitions follow the programming model set forth by the CLR.
• The .NET Framework version 1.0 shipped in 2002 and included version 7.0 of
Microsoft's C# compiler.
• The .NET Framework version 1.1 shipped in 2003 and included version 7.1 of
Microsoft's C# compiler.
• The .NET Framework version 2.0 shipped in 2005 and included version 8.0 of
Microsoft's C# compiler.
This book focuses exclusively on the .NET Framework version 2.0 and Microsoft's C# com-
piler version 8.0. Since Microsoft tries to maintain a large degree of backward compatibility
when releasing a new version of the .NET Framework, many of the things I discuss in this
book do apply to earlier versions, but I have not made any attempts to address things that are
specific to earlier versions.
Introduction xxiii
Version 2.0 of the .NET Framework includes support for 32-bit x86 versions of Windows as
well as for 64-bit x64 and IA64 versions of Windows. A "lite" version of the .NET Framework,
called the .NET Compact Framework, is also available for PDAs (such as Windows CE) and
appliances (small devices). On December 13, 2001, the European Computer Manufacturers
Association (ECMA) accepted the C# programming language, portions of the CLR, and por-
tions of the FCL as standards. The standards documents that resulted from this has allowed
other organizations to build ECMA-compliant versions of these technologies for other CPU
architectures as well as other operating systems. Actually, much of the content in this book is
about these standards, and therefore, many will find this book useful for working with any
runtime/library implementation that adheres to the ECMA standard. However, this book focuses
specifically on Microsoft's implementation of this standard for desktop and server systems.
Microsoft Windows Vista ships with version 2.0 of the .NET Framework, but earlier versions
of Windows do not. However, if you want your .NET Framework application to run on earlier
versions of Windows, you will be required to install it manually. Fortunately, Microsoft does
make a .NET Framework redistribution file that you're allowed to freely distribute with your
application.
The .NET Framework allows developers to take advantage of technologies more than any ear-
lier Microsoft development platform did. Specifically, the .NET Framework really delivers on
code reuse, code specialization, resource management, multilanguage development, security,
deployment, and administration. While designing this new platform, Microsoft also felt that it
was necessary to improve on some of the deficiencies of the current Windows platform. The
following list gives you just a small sampling of what the CLR and the FCL provide:
• Consistent programming model Unlike today, when commonly some operating system
facilities are accessed via dynamic-link library (DLL) functions and other facilities are
accessed via COM objects, all application services are offered via a common object-
oriented programming model.
• Simplified programming model The CLR seeks to greatly simplify the plumbing and
arcane constructs required by Win32 and COM. Specifically, the CLR now frees the
developer from having to understand any of the following concepts: the registry,
globally unique identifiers (GUIDs), IUnknown, AddRef, Release, HRESULTs, and so
on. The CLR doesn't just abstract these concepts away from the developer; these con-
cepts simply don't exist in any form in the CLR. Of course, if you want to write a .NET
Framework application that interoperates with existing, non-.NET code, you must still
be aware of these concepts.
• Run once, run always All Windows developers are familiar with "DLL hell" versioning
problems. This situation occurs when components being installed for a new application
overwrite components of an old application, causing the old application to exhibit
strange behavior or stop functioning altogether. The architecture of the .NET Frame-
work now isolates application components so that an application always loads the
components that it was built and tested with. If the application runs after installation,
the application should always run.
Random documents with unrelated
content Scribd suggests to you:
selfishness—adorned with priceless pearls, were quick to catch the
compliments upon her beauty that Marguerite was receiving.
Her Neville! The boy she had loved—as far, at least, as she was
capable of loving. Her restless eyes scanned the flower-filled enfilade
of salons, and dwelt for an instant upon her husband, who, with
“Antinoüs” in tow, was returning from the smoking-room. Basil’s
personality was of those that impose themselves upon any milieu.
Patrician to his finger-tips, elegant—in the delicate French sense of
this word so misused by foreigners—a full head taller than most of
the men there, he was a Prince to be proud of, a Prince Charming—
as Marguerite had once called him—in every possible respect. Why
then did she feel her throat contract at the realization that she was,
after all was said and done, his irrevocably, and that Neville Moray
was henceforth but a figment of the days that had gone?
Basil certainly dwarfed his neighbors; she could not help admitting it
to herself; and yet the English guardsman was good to look at, too,
and had, moreover, an advantage over him to-night—he was in
uniform, the soirée being a semi-official affair—and to a woman a
uniform always appeals, especially when worn by men as manly as
Moray. To Laurence, so enamoured of pomp and show, it appealed
doubly.
“Hm—he is not the only one,” Neville said, softly, his golden-brown
eyes lingering admiringly upon the exquisite contour of Marguerite’s
face and form. “Will you sing for us to-night, mademoiselle?”
“I! You are not thinking of what you say, Capitaine. I! Sing after
Platnowsky’s wonderful playing, and Señora Vizazona’s folk-songs in
A minor!” But an impatient touch on the arm made Marguerite turn
and gaze at Laurence, who, with heightened color and a toss of the
head that made the diamonds in her tiara sparkle furiously, was
attempting to draw her away.
From the shadowy corner where he stood, the new Military Attaché
surveyed the brilliantly lighted salons with meditative eyes. He fell to
wondering why she had written that hypocrite “Pity me!” Basil, still
chatting with Régis de Plenhöel, was only a few feet away, and the
watcher had to confess to himself that this handsome aristocrat—
every inch a man—with the stars of some great Orders on his coat,
his winning smile and high-bred bearing, was not to be classed with
those whom a woman is very sorry to have married. Moreover,
Laurence had been looking not only happy, but singularly
triumphant, before his own appearance within her range of vision.
Her exultant attitude, her sumptuous toilette, her regal jewels, did
not frame somehow with the picture one makes oneself of a poor
heartbroken creature—vierge et martyr—forced into a distasteful
union; and for the first time his love and loyalty for her wavered.
Presently she came back toward the sofa where Basil and “Antinoüs”
were established. She was leaning on the arm of an Ambassador,
extremely young-looking for so weighty a distinction, who was
obviously delighted with his present rôle as cavalière-servente to the
most-looked-at woman in the room. Laurence, her pretty color
heightened, her eyes sparkling with animation, was responding to
his graceful compliments in faultless Italian, “flying her hands” as if
really to the manner born. The two men on the sofa had risen, and
the little group was now so close to Neville that he could hear every
word distinctly. And suddenly through the archway of the music-
room he saw Marguerite de Plenhöel standing by the concert piano,
where Platnowsky had just installed himself, and half unconsciously
he took a step in that direction, putting aside the curtain, and
standing for a second irresolute and half revealed.
Basil assisted his wife up the marble steps and, gently retaining her
hand in his own, crossed the hall and ascended the great staircase
with her. A double hedge of white lilac and narcissus lined the
porphyry balustrade on either side, and somehow or other Laurence
felt suddenly as if their heady perfume made her dizzy. She foresaw
some sort of explanation between Basil and herself; she knew that
her tone and manner had been unjustifiable, and false pride rose in
her at the thought of being even ever so gently called to account.
Basil, leaning against the tall chimneypiece, was looking straight into
the dancing pink flames.
With a petulant gesture she turned away from him, tightening her
hands upon the fan she still held. There was a tiny rending sound,
and the delicate tortoise-shell sticks fell apart in her lap.
The broken fan had slipped noiselessly into the folds of Laurence’s
train, and she struggled half up, as if to recover it; but he held her
fast, and with a shiver of inexpressible rage she suddenly burst into
tears.
“I have gone too far; I have offended him!” the silly woman—
interpreting his silence wrongly—was thinking meanwhile, her face
hidden on his breast. “What shall I do—how explain?” For in spite of
herself she was more than a little afraid of him now. Gradually,
scientifically, so to speak, she began to temper the pathetic signs of
her distress; and at length she ceased altogether to cry, snuggling
closer and closer to him, however, as a tired child does with its nurse
after some great and exhausting emotion.
He suited the action to the words, raised her head as if it had been
made of egg-shell china with one big, brown hand, and, possessing
himself of the absurd morsel of lace she called her handkerchief,
tenderly wiped very genuine tears of anger from her long eyelashes.
Then he sat her up straight on his knee like a doll, and asked,
smiling imperturbably:
“Tell me now, oh, Un-Serene Highness, what causes all this big
sorrow.”
The manner in which she lowered her eyes and pouted partook of
nothing less than genius. Her white breast was still rising and falling
charmingly in its frame of velvet and ermine, making the big
octagonal diamonds hanging from her necklace throb with prismatic
light, and altogether she was irresistible in her half-contrite, half-
resentful mood.
“You treat me like ... like a baby,” she murmured, pettishly. “And yet
I am your wife, and I have my rights, haven’t I?”
“Well, then,” she went on, twisting the little chain of decorations in
his buttonhole between her slim fingers, “why should I not feel hurt
when you show me, so very rudely, that I am not first in your
thoughts?”
Basil, greatly amused, laughed outright. “So, so!” he said, gaily. “You
have discovered all by your own wee self that you are not first in my
thoughts! What a clever little woman it is, to be sure! Especially
under present circumstances. You should be mightily proud of such a
painstaking and praiseworthy achievement.”
“You can laugh!” she cried, leaping from his knee and confronting
him, her cheeks flaming with real indignation. “You can laugh as
much as you please, but I’m not laughing ... not laughing at all, I
assure you ... nor would you if you knew how you have offended
and affronted me.”
“Is this serious?” Basil asked, getting to his feet after one painfully
astonished glance at her. “A joke must not be carried too far, you
know, my dear.”
Basil stepped nearer to her, put the tips of his fingers on her
shoulders, and turned her face to the full glow of the wax lights
burning in tall candelabras near by.
“What do you mean, Laurence?” he said, quietly. “Is it that you are
jealous of Marguerite de Plenhöel?”
“Yes,” she admitted, attempting to shake him off, but without avail,
for although he did not exert the least pressure, she knew that she
could not rid herself of those well-controlled fingers which
nevertheless weighed so little that she scarcely felt their touch.
“If this is the truth,” he said, slowly, “I am extremely sorry for it.
Jealousy not only denotes an entire lack of confidence and trust in
oneself and another, but an inordinate amount of vanity.”
“I dare say,” she interrupted, sulkily, backing away from him. “But
you cannot change me. I am as I am.”
Her brows met in one straight line above a pair of eyes in which
there appeared for a second a sparkle of hatred.
“Well, then, if you love and adore me as you say you do, you might
show me more consideration. To begin with, I will not tolerate your
attentions to stupid ingénues, nor hear you praise ‘greatest ladies’—
as you call them—to my face. I know you have made a sacrifice in
marrying me, since I brought you nothing but myself; but as you
have done so, I suppose you’ll have to abide by your bargain, such
as it is.”
Leaning against a table, both hands grasping its edge behind her,
she was absolutely glaring at him, courting a quarrel with all her
might, and a dreary sensation of pain and bewilderment overcame
him.
She, however, did not do so. As a matter of fact, she had by now
worked herself into such a fury that she no longer quite knew what
she was doing. She vaguely felt that she was acting like a fool. Yet
she could not master an intense desire to hurt him, if she could only
do so.
But she kept silent still, and, enervated beyond measure, he reached
her in one stride, snatched her up in his arms, and crushed her
passionately to him. There was a moisture in his eyes that he did not
care to let her see.
Instantly Basil cast behind him all that had taken place. She was a
child, he told himself. Nothing but an impulsive, as yet immature
creature, charming and wayward, whom he loved with a great love.
What mattered a little cloud in a sky hitherto so pure? Surely he had
been in the wrong to take the affair so seriously. He would have
done much better to laugh it away, and thus did he begin to laugh
and pet her, a change of front which she submitted to with seraphic
patience, especially as he promised her—to commemorate their first
little dispute—a wonderful bracelet of uncut sapphires she had
admired that very morning in the rue de la Paix. What will you?
Children must have toys and bonbons to console them when they
cry.
A little later, when he had rung for her women, Basil went to his
study. It was dark, save for the fire-glow, and he did not trouble to
turn on the lights, but stood a long time at a window overlooking the
garden behind the house. It had been freezing very hard for Paris—
this particular winter being of unusual severity. Every tree, every
branch, gleamed in crystal purity. The lawn, which earlier had been
powdered with snow, glittered like a carpet of diamonds, and the
hundred ramifications of a leafless aristolochia on the end wall made
a twinkling lace-like tracery, interspersed here and there with broad
frost-roses and ice-flowers against the dark stone. Above this fairy
spot the sky was sown with stars, only a little paled by the cold
radiance of the full moon.
A growing longing for his own land gradually stole over Basil as he
stood there motionless. He drew a deep breath of regret as he called
to mind the enchanting nights on the Neva; the music of sleds, the
silky slide of sleigh runners, the fitful waves of the Northern Aurora
rising and falling like a softly moving curtain behind the towers and
domes of snow-hushed St. Petersburg.
Until then he had not paused to think about the change that had
come over his life. It had all been done so swiftly. Dazzled by
passion, he had never paused to reflect that he was binding himself
to a being of another race, another creed, another world, so to
speak, and that such a step might bring about unforeseen and very
grave difficulties. She had been so docile, so very anxious to please
him during their brief engagement. Without a murmur she had
abandoned the old faith of her people, for Greek Catholicism. She
had accepted—in theory, at least—with touching self-forgetfulness,
the heavy duties devolving upon the consort of a great territorial
lord responsible for the welfare of the hundreds and hundreds of
retainers and dependents upon his large estates, in villages and
small towns lost in the immensity of the steppes, the depths of the
boundless forests; and she had seemed to fully understand the
heavy cares resulting from immense wealth, when that wealth is not
looked upon as a mere personal benefit, but as a terrible
responsibility for which account must some day be rendered to One
watchful of His creatures and their deeds. Deep below the Russian
earth labored miners whose task it was to bring to the surface gold
and platinum, gems and malachite and lapis lazuli to fill the Palitzin
coffers. Vast reaches of field and furrow, of forest and vineyard,
were worked by erstwhile serfs of that princely house, in order to
fulfil the same purpose. Thousands of horses and cattle were tended
upon the plains by troops of herdsmen wearing the emblazoned
brassard of Basil-Vassilièvitch Palitzin—the present master of half a
province or so—and, strange to say, none were malcontents; for
their lord treated them well, and had made himself well-beloved
during the years of his stewardship. And now what of the Princess
who was to rule at his side? The question was late in coming to his
mind. Well-born, well-bred, well-educated, she assuredly was. Why
should she not be the absolute partner of his thoughts, his ideals,
his plans—and they were many? But would she be that? He passed
his hand slowly across his forehead, and relapsed into contemplation
of the miniature Muscovy gleaming beneath the moon at his feet
and islanded amid the great capital of France.
Paris with its round of gaieties, its music and laughter, and
republican irresponsibility! Paris, the paradise of strangers from all
parts of the globe; Paris, that from a thorough Anglomaniac had
changed with startling rapidity into an Americo-lunatic; Paris, who
threw wide her portals to every moneyed invader that chose to come
her way, and gave him in return the tinsel-glitter and costly
viciousness prepared for his or her reception, guarding jealously out
of sight whatever remained truly French and truly decent within her
walls, so that none could truthfully speak well of that famous
modern Babylon. Basil smiled a little bitterly as his thoughts ran on
thus. London, Berlin, New York—he knew them well—were wiser far
than Paris. They did not flaunt their evil in the face of visitors, not
they! They hid it scrupulously under the thick mantles of variegated
religions, suited to every taste and class. Human failings, frailties,
and worse than frailties, were shut in hidden places there, guarded
by solemn-faced warders who denied their very existence and
profited by their remarkable vivacity. And Petersburg—once again
Basil’s mind flew back to his own dear capital city, where failings and
virtues run neck to neck, and elbow to elbow, in supreme
carelessness of consequences, but at any rate without either
effrontery or hypocrisy—just like Vienna, only more so!
Laurence loved Paris. It was she who had hinted, in her pretty girlish
way, at a speedy installation there, where she knew so many people
—friends of her uncle and aunt, acquaintances made during her stay
at Seton Park, Wiltshire, and Seton House, Belgravia; her summer
cruises on the Phyllis; her short sojourns with Uncle Bob and Aunt
Elizabeth at seaside or mountain resorts. Before these she ardently
desired to appear in her new Glanz und Pracht, these who had seen
her in the character of a dependent—and what a bounty that had
been! But what did Basil know about these little secret plans? What
indeed! He had found it quite natural for a young girl, full of life and
of the joy of life, to want to spend her first married winter in the city
of worldly pleasure par excellence. At that moment, however, he
began to question the wisdom of his having so readily assented to
her wishes. He felt that it might have been better for him to have
done otherwise, to have begun by making her thoroughly acquainted
with her adopted land, her adopted nationality, her new hereditary
dignities and duties. Yes, the welfare of his own people was dear
indeed to him, and a flying trip to his chief estate, where she had
been greeted and fêted like a young queen, served but little to
initiate her to what his life among them, as their suzerain, had really
been.
With a puzzled frown he leaned his head against the cold glass. “We
belong,” he mused, “to utterly discrepant generations. I am so
irredeemably slow and old-fashioned; she is so intensely modern!”
He gave his shoulders a shake of dissatisfaction at these
shortcomings of his. Then he began to pace moodily back and forth
before the huge fireplace. “Oh yes,” he reflected, sadly, “I suppose I
will always be saying and doing things she will instinctively dislike
and resent, and if she really is of a jealous disposition—” He
stopped, pulled fiercely at his mustache, and resumed his pacings
and his futile cogitations until his brain grew tired.
Sir Robert and Lady Seton were passing through Paris on their way
to join the Phyllis in Mediterranean waters. They intended to cruise
along the African coast, putting in a few days at Algiers, a week or
so in Alexandria, and then go on to the Bosphorus, which possessed
the charm of mirroring on its gracious bosom the minaretted city
where a first cousin of “Uncle Bob” was representing his country at
the Padishah’s Court.
The middle-aged couple were for the time being at the Meurice,
occupying a suite of rooms replete with every comfort, and were at
that very minute enjoying a thoroughly English breakfast in their
sunny private dining-room. No such kickshaws for Uncle Bob as
foamy chocolate and golden-coated rolls light as muslin, but soles
fried in torment, with an accompaniment of oysters, truffles,
mussels, and a seasoning of white wine; a portentous steak,
humpbacked and juicy—as every self-respecting beefsteak should be
—an omelette rouged into the semblance of a modern beauty by its
filling of tomatoes, not to mention several other odorous trifles in
the shape of grilled sardines and deviled kidneys.
Ensconced behind the pages of the London Times, Sir Robert was
seated squarely before his well-filled plate, and while perusing the
news of two days before with the greatest interest, methodically
carried his fork to his mouth, and back again for fresh supplies. His
wife, without sparing herself a bite, was getting through a pile of
letters just arrived, leaning each one in turn against the toast-rack
as she read, while “Lady Hamilton”—a sadly obese toy spaniel, and
her mistress’s darling pet—sat gravely on a cushioned chair beside
her, gloating with all her large, moist eyes over a near-by dish of
cake.
“No, Sir Robert—that is, yes, in a way, Sir Robert; there is a—er—
gentleman to see you, Sir Robert, in the reception-room.”
“A gentleman to see me in the reception-room at eleven o’clock!” Sir
Robert exclaimed. “Did he send up a card?”
“No, Sir Robert, leastways not that I know of. The chassewer down-
stairs”—Berkley was no French scholar—“sent up the name only, by
the page.”
“Young Wynne! God bless my soul! Why didn’t you say so at first?
Show him up immediately, Berkley. Why, you’ve seen him fifty times
at Seton Park. Show him up—of course if you don’t mind, my dear,”
he concluded, addressing his wife, who nodded consent without
discontinuing her reading.
In a moment Mr. Preston Wynne was warmly shaking hands with Sir
Robert, after which he reverently touched the extended tips of Lady
Seton’s fingers, bowed, and accepted a chair facing the one where
“Lady Hamilton” was now enjoying the audible slumber of the
corpulent.
“Not a bit too early, my dear boy,” Sir Robert said, with unwonted
geniality. “I did not know you were in Paris, though. When did you
arrive?”
“Have you already seen my niece?” asked Sir Robert, who (it may as
well be admitted at once) could never face a situation of any
awkwardness without immediately feeling called upon to put both
his large, well-shaped feet through and through it.
“The day after my arrival I saw her driving in the Bois wrapped to
the eyes in amazing sables, and behind a pair of Orloffs that made
my mouth water, I assure you. Two nights later I glimpsed her at the
opera wearing a diadem and triple necklace of rubies and diamonds
fit for an empress. But in neither case did she appear to recognize
my humble personality.”
Preston Wynne half rose, put his hand on his heart, and bowed with
gay appreciation of the compliment.
Mr. Wynne, still listening politely, was beginning to wonder where Sir
Robert was heading.
Sir Robert rose, walked over to the fire, planted himself on the rug,
and, with both hands under his coat-tails, surveyed the speaker.
“I’m glad to see you take it like that!” he stated, thinking within
himself of Neville Moray’s visible melancholy when he had met him
at a levee some two weeks after Laurence’s wedding. “There’s never
any use,” he resumed, “in crying over derailed love-affairs, and this
being so, I wish you’d come and dine with us here to-night. You’ll
meet the Palitzins and some Breton friends of Laurence’s, the
Marquis and Mademoiselle de Plenhöel. They are near relatives of
Prince Basil, and it was at their château in Brittany that Laurence
first met her husband.”
Wynne rose and drew on his left glove before answering. He wanted
just that infinitesimal space of time to make up his mind, and when
he had accomplished this task the trick was done.
“Thank you very much, Sir Robert. I’ll come with pleasure if you’ll let
me,” he said, smiling. “Good morning, Lady Seton. I’m off!” he
added as, turning, he found himself face to face with her fur-
wrapped figure. “Sir Robert has been good enough to invite me for
to-night, and so, as the saying is over here, ‘Au plaisir, madame, de
vous revoir.’”
“You are wholly correct,” he said, stiffly, “for that is exactly what I
have done!”
Lady Seton raised her muff toward heaven—a painted one, with a
Greek key pattern and cupids disporting themselves among roses in
merry French fashion—let the muff sink to the level of her somewhat
flat waist, and sat abruptly down on “Lady Hamilton,” who awoke
with a smothered groan of surprise and pain.
“My Heaven! What have I done?” shrieked the lady, getting on her
feet again with surprising agility. “Oh, my poor, poor lovey!” she
moaned, hugging the fat, wheezing little dog to her fur bosom. “Oh!
Oh! Oh!”
He set his foot with an air of extreme finality upon the hearth-rug,
volte-faced, and strode to the door to meet his hat, coat, and cane
in the hands of the rigid Berkley; leaving his wife, in one of her most
acid moods, to follow behind.
The dinner-table that night was set with all the luxury that money
can suggest to French taste, and it was difficult to realize that the
silver and crystal, the porcelain and flowers, had not been
preordained and arranged by the especial orders of a distinguished
hostess. As Sir Robert said, condescendingly, “They manage these
things very well in Paris.” Contrary to what Lady Seton had
anticipated, a cheerful merriment held the guests from the moment
they sat down, and soon the conversation—never failing in genial
humor—actually rose to the higher level of wit. This was due chiefly
to Basil and to young Wynne, who seemed—much to Laurence’s
annoyance and surprise—to hit it off from the first. Lady Seton,
usually what her husband described as a “damper,” became as
nearly responsive to the pleasing atmosphere of the occasion as was
possible for her to be, while Sir Robert, to everybody’s astonishment,
plunged headlong—after the fish—into excellent yachting anecdotes.
Tubbed and razored, and shedding cheerful waves of bay-rum and
hair tonic about him, his ample shirt-front embellished by two large
pearls gleaming like moons through mist, he expanded more and
more as the well-conceived menu fulfilled its alluring promises, and
cast glances of roseate satisfaction around the board. “Elizabeth is a
fool!” he commented, inwardly. “They’re all enjoying themselves like
periwinkles at high tide.... By the way, she’s got herself up to his
Majesty’s taste, has Elizabeth. She’s positively scratched five years
off her age.” And so she had. For on occasions of ceremony, in spite
of her Galliphobe tendencies, Lady Seton knew not only how to buy,
but how to wear a Parisian gown of the best Place Vendome make,
besides which her neck and arms were still more than presentable,
and her jewels magnificent. Had there possibly lurked in her mind a
desire to eclipse Laurence’s bridal splendors? But who is to gauge
the possibilities of a feminine brain, old or young? At any rate, to
quote Sir Robert, as far as “get up” went, she was easily ahead of
her niece by several lengths; for the faint pink of the bride’s crêpe-
de-Chine, looped up with natural Bengal roses, was of Basil’s
selection, and therefore its exquisite simplicity paled before her
aunt’s gold-laminated brocades and zibline-bordered train.
Beside her sat Neville Moray, a trifle too silent and contemplative,
but still smiling amiably, and Preston Wynne, from his place by the
Ambassadress, caught and passed the ball of gay chatter with Basil
and “Antinoüs,” his next neighbor. Both were highly amused by his
sallies as he related to them a recent trip to Sonora, where the elder
Wynne owned a beautiful hacienda. Mexican haut-faits were related
in vividly picturesque language, dotted now and again with Spanish
names and expletives of a gracious canority, while when the narrator
dropped into plain United States his discourse became variegated
with cowboy vernacular that brought tears of laughter to all eyes.
Sir Robert, who had been neglecting his charming neighbors, burst
into a roar of laughter.
“So do I, Sir Robert,” was the prompt reply. “I was afraid my little
story might have shocked everybody.”