Professional C and NET 2021st Edition Nagel pdf download
Professional C and NET 2021st Edition Nagel pdf download
download
https://ebookmeta.com/product/professional-c-and-net-2021st-
edition-nagel/
https://ebookmeta.com/product/professional-c-and-net-2021st-
edition-christian-nagel/
https://ebookmeta.com/product/pro-c-7-with-net-and-net-core-
eighth-edition-andrew-troelsen/
https://ebookmeta.com/product/professional-c-6th-edition-
gregoire/
https://ebookmeta.com/product/clueless-romeo-guys-next-
door-3-1st-edition-baylin-crow/
Learning Snowflake SQL and Scripting: Generate,
Retrieve, and Automate Snowflake Data 1st Edition Alan
Beaulieu
https://ebookmeta.com/product/learning-snowflake-sql-and-
scripting-generate-retrieve-and-automate-snowflake-data-1st-
edition-alan-beaulieu/
https://ebookmeta.com/product/introduction-to-modern-modelling-
methods-the-sage-quantitative-research-kit-1st-edition-d-betsy-
mccoach/
https://ebookmeta.com/product/artificial-intelligence-on-medical-
data-1st-edition-mousumi-gupta/
https://ebookmeta.com/product/china-trade-and-power-why-the-west-
s-economic-engagement-has-failed-1st-edition-stewart-paterson/
https://ebookmeta.com/product/lasl-phermex-data-volume-1-lasl-
phermex-data-vol-i-timothy-r-neal-editor/
Indian constitution law 1st Edition M P Jain
https://ebookmeta.com/product/indian-constitution-law-1st-
edition-m-p-jain/
PROFESSIONAL
C# AND .NET
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxix
▸▸ PART II LIBRARIES
CHAPTER 14 Libraries, Assemblies, Packages, and NuGet. . . . . . . . . . . . . . . . . . . . . . . . 377
CHAPTER 15 Dependency Injection and Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . 392
CHAPTER 16 Diagnostics and Metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419
CHAPTER 17 Parallel Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
CHAPTER 18 Files and Streams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 485
CHAPTER 19 Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
CHAPTER 20 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
CHAPTER 21 Entity Framework Core. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582
CHAPTER 22 Localization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 644
CHAPTER 23 Tests. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668
Continues
▸▸ PART III WEB APPLICATIONS AND SERVICES
CHAPTER 24 ASP.NET Core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687
CHAPTER 25 Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 714
CHAPTER 26 Razor Pages and MVC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 752
CHAPTER 27 Blazor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 779
CHAPTER 28 SignalR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 801
▸▸ PART IV APPS
CHAPTER 29 Windows Apps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 819
CHAPTER 30 Patterns with XAML Apps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 876
CHAPTER 31 Styling Windows Apps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 899
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 933
PROFESSIONAL
C# and .NET
PROFESSIONAL
C# and .NET
2021 Edition
Christian Nagel
Copyright © 2022 by John Wiley & Sons, Inc. All rights reserved.
ISBN: 978-1-119-79720-3
ISBN: 978-1-119-79722-7 (ebk)
ISBN: 978-1-119-79721-0 (ebk)
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means,
electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Section 107 or 108 of the
1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through
payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923,
(978) 750-8400, fax (978) 750-4470, or on the web at www.copyright.com. Requests to the Publisher for permission should
be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201)
748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permission.
Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in preparing this book,
they make no representations or warranties with respect to the accuracy or completeness of the contents of this book and
specifically disclaim any implied warranties of merchantability or fitness for a particular purpose. No warranty may be
created or extended by sales representatives or written sales materials. The advice and strategies contained herein may not be
suitable for your situation. You should consult with a professional where appropriate. Neither the publisher nor author shall
be liable for any loss of profit or any other commercial damages, including but not limited to special, incidental,
consequential, or other damages.
For general information on our other products and services or for technical support, please contact our Customer Care
Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in
electronic formats. For more information about Wiley products, visit our web site at www.wiley.com.
Trademarks: WILEY, the Wiley logo, Wrox, the Wrox logo, and Programmer to Programmer, and related trade dress are
trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries,
and may not be used without written permission. All other trademarks are the property of their respective owners. John
Wiley & Sons, Inc. is not associated with any product or vendor mentioned in this book.
CHRISTIAN NAGEL is a Microsoft MVP for Visual Studio and Development Technologies
and has been Microsoft Regional Director for more than 15 years. Christian is the founder
of CN innovation, where he offers coaching, training, code reviews, and assistance with
architecting and developing solutions using Microsoft technologies. He draws on more than
25 years of software development experience.
Christian started his computing career with PDP 11 and VAX/VMS systems at Digital
Equipment Corporation, covering a variety of languages and platforms. Since 2000, when
.NET was just a technology preview, he has been working with various technologies to
build .NET solutions. Currently, he mainly coaches people on developing and architecting
solutions based on .NET and Microsoft Azure technologies, including Windows apps, ASP.NET Core, and .NET
MAUI. A big part of his job is helping companies move their solutions to Microsoft Azure.
Even after many years in software development, Christian still loves learning and using new technologies and
teaching others how to use them. Using his profound knowledge of Microsoft technologies, he has written numer-
ous books and is certified as a Microsoft Certified Trainer, Azure Developer Associate, DevOps Engineer Expert,
and Certified Solution Developer. Christian speaks at international conferences such as Microsoft Ignite (previ-
ously named TechEd), BASTA!, and TechDays. You can contact Christian via his website at www.cninnovation
.com, read his blog at csharp.christiannagel.com, and follow his tweets at @christiannagel.
ROD STEPHENS is a long-time developer and author who has written more than 250 mag-
azine articles and 35 books that have been translated into languages around the world.
During his career, Rod has worked on an eclectic assortment of applications in such fields
as telephone switching, billing, repair dispatching, tax processing, wastewater treatment,
concert ticket sales, cartography, and training for professional football teams.
Rod’s popular C# Helper website (www.csharphelper.com) receives millions of hits per
year and contains tips, tricks, and example programs for C# programmers. His VB Helper
website (www.vb-helper.com) contains similar material for Visual Basic programmers.
You can contact Rod at RodStephens@csharphelper.com or RodStephens@vb-helper.com.
ACKNOWLEDGMENTS
I WANT TO THANK Charlotte Kughen. For many years and many editions of this book, she has made my text
so much more readable. Often, I completed chapters late in the evening, when I miss things as I turn sentences
around. Charlotte was of enormous help in changing my ideas into great readable text. Charlotte, big thanks for
your continued support with these editions; I’m looking forward to working together in the future as well.
Special thanks also go to Rod Stephens, the technical editor of this edition. Rod had great comments on my
source code and induced some changes that helped with the quality of the source code. Rod is also the author
of some great books, for example Essential Algorithms: A Practical Approach to Computer Algorithms Using
Python and C# and WPF 3d: Three-Dimensional Graphics with WPF and C#. These books can be a great addi-
tion for your C# bookshelf.
My thanks also go to the complete team working on the book. In particular, I want to thank István Novak, tech-
nical editor of several previous editions of this book. Now István had the role as technical proofreader to solve
some final issues. I also want to thank Kim Wimpsett, who fixed some more text issues during the production
phase, and Barath Kumar Rajasekaran, who helped the flow during production.
I would also like to thank all the people working on C# and .NET, especially Mads Torgersen, who has worked
with his team and the community to bring new features to C#; Richard Lander from the .NET Core team, with
whom I had great discussions on the content and the direction of the book; and David Fowler, who enhances
.NET not only with performance improvements but also usability. Thanks go to Scott Hanselman—who I have
known for many years from our time together as Microsoft RDs—for his great ideas and continuously working
with the community. Thanks go to Don Box, who influenced me in the times before .NET was available about
love and freedom (COM and XML).
This edition of the book was born during the COVID-19 crisis, which changed the business landscape faster than
everyone thought would have been possible. I didn’t have less business during this time as I worked online from
my home office, but during my career, I’d never had less travel. This available time was completely spent work-
ing on the book. On the other hand, for previous editions of this book, I remember working many hours while
waiting at the airport. This time, I wrote the entire book in my home office. I want to give a big thanks to my
wife and my children for supporting my writing. You’ve been enormously helpful and understanding while I was
working on the book for many nights, weekends, and without a vacation (not only because of the coronavirus
crisis). Angela, Stephanie, Matthias, and Katharina—you are my loved ones. This would not have been possible
without you.
CONTENTS
INTRODUCTION xxxix
L
ATE that night he returned to the pierhouse of the Hudson limping,
with his arm in a sling, his face bruised and an eye blackened.
“Turk” Sturton, whose watch it was, received him without sympathy.
“Cap’n wants to see yuh,” he said sternly. “Where’ve yuh been?”
“Shine’s” face expressed all the bitterness of a soul that had found no
relief in its curses. “Wait!” he said. “Jus’ you wait!”
He went into Keighley’s office. The captain put aside a newspaper
that he had been reading, and looked him over. “Well?”
“Shine” moistened his lips and began his explanations. They were
guiltily ingenious. He had fallen down a hatch in the Leo and had lain
unconscious until the steamer was half way to Coney. Then some
deckmen in the forecastle had heard him groaning and had come to
his rescue. He had been badly shaken up but not seriously hurt, and
he had decided to hurry back to the Hudson by trolley instead of
waiting for the Leo to make her return trip. He borrowed some
clothes and went ashore, but as he was hastening up one of the
board walks towards the street-car line, he was stopped by a number
of men who were disputing about a cane which one of them had
“ringed with one o’ them rings that yuh toss at canes in a ‘Cane-yuh-
ring-is-the-cane-yuh-get’ graft.” And they had demanded that he
decide whether the cane had been “ringed” or not. The ring was
resting on the knob of the cane, being too small to fall down over it.
It was a “faked-up” dispute. They were a “gang o’ strong arms,” and
when they got him in among them, they started to “go through” him.
He put up a fight. They “got all over” him, knocked him down, gave
him a black eye, and took his money. He had had to walk back from
Coney. He—
“That’ll do,” Keighley cut in. “Take that sling off yer arm. Yuh can’t
come any spiels like that on me.”
“S’welp me, cap, I—”
“Cut it out, now, I tell yuh. Yuh’ve been drunk. Yuh’ve been off duty
ten hours without leave. Yuh’ve either got to gi’ me a straight story er
walk the carpet at Headquarters.”
“Shine” swallowed and looked down at his feet. He was calculating
that Acting-Chief Moran would be lenient with a “Jigger.”
“Yuh’ve been havin’ things pretty much yer own way around here,”
Keighley said. “This’s where yuh take a drop. The Commissioner’s
out, see? He quit this afternoon. Youse fullahs ’er goin’ to do what I
say after this. If yuh go up to Headquarters, yuh don’t come back.
Moran won’t save yuh. He’s got all he can do to save his own neck,
now.”
“Shine” looked at the captain, and recognized that his game was up.
“’Twasn’t my fault,” he said. “It was Doherty’s.”
“Doherty! What’d Doherty have to do with it?”
“The damn dip! He done me up,” he said—and plunged into an
incoherent and many-cursed account of what had happened.
Keighley heard him in silence. When Doherty’s part in the affair was
made plain, the captain “sized up” the situation with the frown of a
chess-player studying the board, and said “Ummm” as he saw his
play. “Shine” finished, humble and submissive. Keighley said, “Go to
yer bunk.”
It is the tradition of the department that a captain shall enforce
discipline in his company without sending his men to Headquarters
on every trifling charge that he has against them. Keighley watched
“Shine” out, snorted contemptously through his nose, reached for the
newspaper again, and returned to the column that reported the Fire
Commissioner’s resignation. He had “Shine” where he “wanted” him,
as he would have said. And he had his whole company in the hollow
of his hand.
“Shine” knew it. The “Jiggers” knew it. “It’ll be off to the goose-
pastures fer ours all right,” Cripps said, discussing the situation with
“Shine.” “The chief’ll get back, now, an’ if he don’t find a way to
break us, he’ll ship us off to the Bronx. I don’t care a damn anyway,”
he added in feeble defiance.
“Ner me!” “Shine” clenched his hand. “I’m lookin’ fer Doherty. If they
kick me out o’ the department, I’ll find him all the quicker. An’ I want
youse fullahs to keep yer eyes skinned fer him. Jus’ tell me where
he’s workin’. That’s all! I’ll do the rest.”
Cripps swore plaintively. “After us fightin’ ol’ Clinkers fer him, too.”
“An’ fer the rest o’ them,” “Shine” cried. “They’ve played us fer
suckers—Moran an’ the whole dirty gang. They’ve used us. An now
when they’re afraid o’ fallin’ down, they’ll chuck us. That’s all we’ll get
out o’ the ‘Jigger’ bus’ness. Yuh’ll see.” He wiped his mouth with the
back of his hand; he was almost “drooling” with disgust and
bitterness. “Never mind. If I ever get ahold o’ Doherty!” he promised
himself.
There is nothing persists among these men as an enmity does. A
man who has been wronged sees the scar of the injury as a mark of
inferiority on him, and his pride in himself is never satisfied until he
has been able to “get even,” until he has proved himself the equal of
his enemy by returning the hurt in kind. “Shine” could not even
consider his case in solitude without suffering. When he was among
companions, he could not think of Doherty without breaking out in
new threats of vengeance, as if he would give a sort of promissory
note against his debt of hatred. He asked everywhere for news of
Doherty. His first day off he spent in searching Coney, with his hands
clenched ready in his pockets. When he heard that Doherty had been
seen about the docks, he spent hours at the pierhouse windows
watching the river traffic, and took his weekly holiday lounging about
the water-front with the instinctive patience of a beast of prey. By the
time a month had passed, the desire of revenge had become a sort
of subconscious habit that affected his actions without disturbing his
thought. He went about his work as of old, but silently, as self-
contained as a man with a great ambition. He knew that if he could
wait long enough he could get his man. He was prepared to wait a
lifetime.
Then, one day, two things happened: Chief Borden came back to his
place in the department and “Shine” heard that Doherty had been
seen working as a freight-handler again on the Baltic-American
wharves. At meal hour “Shine” did not go to his dinner; he hurried
home to change his uniform, and posted off to the Baltic-American
sheds—and he was denied an entrance by the wharf watchman.
Since the fire on the Sachsen the rule had been strictly enforced that
no stranger should be admitted to the company’s piers without a card
from the office. “Shine” did not care to show the metal fire-badge on
his suspender; it was not a case for an official appearance. He
returned to the Hudson hungry but full of hope. He could wait for his
day off, waylay Doherty as the longshoremen left their work in the
evening, and mark him for all time.
As it turned out, he did not have to wait for his day off. He waited
only two days. On the third day the impossible happened.
An alarm of fire was rung in from the Baltic-American piers.
It found Chief Borden closeted with Captain Keighley when the call
came. Under the eye of the head of the department, the crew took
their places with an easy alertness and no confusion. The chief
followed them aboard; the lines were cast off; Keighley nodded an
order to the pilot; and the boat drew out into the stream with as little
show of haste as a fast express pulling out from a railway platform on
the tick of the appointed second.
The sullen glow of a sunset was smoldering dully over the Jersey
shore; and New York was piled up to face it, a Gibraltar of brick and
stone, twinkling with its lighted windows and gay with the blown
plumes of steam from its roofs. A stiff breeze from the north drove
the waves against the bow of the Hudson and hummed in the guys of
her funnel. Keighley and the Chief, facing the bow with their backs to
the wheelhouse, their chins sunken in their collars, were bent against
the rush of air like a pair of old and deaf cronies, their hands behind
them, their heads together as they talked.
“It was about a man named Doherty,” Keighley was explaining
reluctantly. “You remember him, I guess. Some o’ the men didn’t like
it when I got him broke. An’ they made a little trouble fer me—off an’
on.”
“He was a ‘Jigger,’ wasn’t he?”
“Yes.”
“How about that fire on the Sachsen? Didn’t Doherty figure in that?”
“Well, I saw him there. He was doin’ ’longshore-work on her. He
might’ve been in it. I don’t know.”
“Didn’t they stack the deal on you there?”
“I think they did. I don’t know. They got foolin’ with a pierhouse
blaze while I was down in her hold.... I tell yuh how it is, chief: it’s all
over. They’re attendin’ to bus’ness. Yuh needn’t be a-scared of any of
’em in this comp’ny.”
Keighley’s tone was apologetic and conciliatory. It seemed traitorously
so to the chief. “A-scared be damned!” he said. “I got to make them
a-scared of me. Who was at the head of the game here? Moore?”
Keighley answered, “The man that was at the head of it—he’s lef’ the
comp’ny.”
The chief darted a black look at Keighley under the peak of his cap.
“No one’s left this boat since that fire. I looked her up.”
“No,” Keighley admitted, unabashed. “But he’s left off makin trouble.”
“Now listen to me, Dan,” Borden broke out. “I’ve come back to the
department and I’m counting up my friends. Those that ain’t with me
are against me. That’s the way I look at it.... You know as well as I
do that if I don’t pound these men, they’ll think I’m afraid of them—
and they’ll get to work and knife me.”
“Well—that’s true, too,” Keighley reflected. He glanced up at the
Jersey shore and down at the deck again. “I wish yuh’d leave them
be, though, chief. I got the best crew in the department, now.”
The chief shook his head. “They didn’t leave me be. I can’t let up on
them. You know what they’d think.”
“Well,” Keighley said, looking out over the river, “I’ll tell yuh. The man
that was at the head of it—” He blinked the water from his eyes and
peered into the wind—“in this crew—” He raised his arm slowly and
pointed. “What’s that?”
Through the traffic of ferries, car-floats and lighters that crowded the
shore, he could see a big freighter drifting down the piers with a
flotilla of tugs about her. “What’s the matter? Is she afire?”
The chief watched her. “Looks like it, don’t she?”
There was no answer. He turned to see that Keighley had left him;
and he followed back to the wheelhouse, where he found the captain
standing at the pilot’s elbow with the glasses at his eyes.
“It’s a Baltic-American boat, all right—the Hessen,” Keighley said. “No
fire ashore. They pulled her out of her dock, I guess. I don’t see
much smoke on her. Lay us alongside, Tom.”
And the chief, mentally putting aside his feud with the “Jiggers” for
the time, said: “They’re keeping it under hatches. Gi’ me the
glasses.... It’s in one of her after holds.”
XXIII
D URING all this time, Chief Borden had been at the coaming of the
open hatchway, watching the “Jiggers” from the main deck; and,
when the electric lights had been turned on in the hold, he had been
able to enjoy “Shine’s” combat with the wild animals, from a gallery
seat. At first he had been merely an indifferent spectator, much
preoccupied with affairs of state in the department; but when he
saw the lion driven back among the cages like a doused cat, the
shouts of laughter from the men around him set him smiling under
his grey mustache. These men, under Keighley, were lowering the
big line down into the hold to attack the fire; and they amused
themselves by shouting encouragement to “Shine” as if they were
following a bull fight. The situation was the funnier because “Shine”
was unable to hear them—on account of the uproar around him—
and unable to see them because he was in the light and they in
darkness; and he whooped and danced about with his nozzle,
unconscious that he was playing the clown for their amusement.
“Give it to ’em,” they called. “Kick ’em in the slats. Ho-ho! This ’s
more fun ’an a circus!”
The chief—naturally a jovial man, with a bluff military manner—
enjoyed it as much as anybody. But when the bear appeared, they
all saw danger in the joke. “Here,” the chief cried. “He’ll never hold
that brute. Get a bigger line down to him. There comes another.
They’ll eat him up.”
Keighley and his men ran back to bring up a three-inch line, and the
chief remained laughing at the duel between “Shine” and the bears.
He shouted, “Back out, you fool!”
Moore and the fireman with him, who were just below where the
chief stood, heard the order and obeyed it. By so doing they left
“Shine” unprotected from an attack in the rear. When the third bear
appeared, the excitement became frantic; and the whole company,
from the chief down, pulled on the incoming hose and shouted and
laughed together.
The chief, at the nozzle, was the first to see the lion creeping around
the hatch. “Stop him!” he cried, to nobody in particular. “Damn it all!
Behind you, man,” he yelled to “Shine.” “Look behind you!”
“Shine” could not hear him. The chief took off his cap and threw it
down at the animal, vainly. He dropped on his hands and knees
beside the hatch, clutching the nozzle of the three-inch line,
bellowing hoarsely for water, half-choked with laughter. When
“Shine” caught sight of the lion and turned from the bears to drive it
back, the chief saw the bears closing in, and he hammered on the
iron coaming of the hatch with the nozzle, in an inarticulate
excitement. And then he got water just as “Shine” dropped his pipe
and ran; and he struggled with his kicking nozzle, the tears of
laughter running down his cheeks, unable to see the bears whom he
was trying to take in the flank with his stream so as to hold them
until “Shine” could make good his retreat.
Keighley had been working his men like an old slave-driver, glancing
back at the chief, every now and then, with a sly, dry smile. Now he
caught Borden’s pipe and steadied it. “All right, chief,” he said. “He’s
out. Here he comes.”
“Shine” climbed, panting, up the ladder. “Hold those brutes off us
now,” Keighley ordered. “We got to get down to that fire. Here
‘Shine’! You an’ Cripps take this pipe an’ keep those cats away from
the hatch.”
“Shine” came to the chief’s pipe, grinning at the remarks of the men.
“You’re as good as a circus,” Borden said, wiping his eyes.
“They scared the tripe out o’ me.”
Keighley turned to his pipe. “I’m responsible for this boat”
See page 124
The chief gave place to him. Keighley ordered: “Down yuh go, now.”
Cripps and “Shine,” at one angle of the hatch, and Moore and his
pipeman, diagonally opposite, commanded the deck below with two
solid streams that drove the animals into shelter among the cages,
while Keighley and his squad, with axes and ladder straps, went
down to fasten their six-inch line and cut an opening for the pipe in
the hatch. The smoke blew up in a thick belch as the men stripped
off the tarpaulin. “That’ll keep Mr. Bear busy,” the chief said.
“Mr. Doherty, too,” “Shine” volunteered.
The chief looked at him. “Who’s this Doherty anyway?”
“Shine” kept his eyes on the pipe. “He’s the mut that got us all in
trouble the time o’ the fire on that other Dutch boat.”
“I thought the ‘Jiggers’ were at the bottom of that,” the chief said,
with a pretended innocence.
“They blamed it on us. They blamed ev’rythin’ on us—because some
o’ the fat heads higher up used th’ association in their damn con
games.”
The chief scowled at this reference to the conspiracy that had ousted
him. “You’re a ‘Jigger,’ are you?”
“That’s what I am,” “Shine” admitted, with bravado. “I’m a ‘Jigger’ all
right, but I ain’t a back-sticker, any more’n half the other fullahs I
know—an’ they didn’t ask us before they put up their deal with the
Commissioner, if yuh want to know.”
The chief’s dignity would not let him discuss such matters with a
man in the ranks. He said, “Shut off your nozzles there, now. You’re
putting too much water on that deck”—and walked away without
further remark.
“Shine” said, under his voice, to Cripps: “That’ll hold him fer a
while.”
Cripps replied, with a convincing oath, “It’s true, too.”
A hole had been cut in the hatch below, and a denser smoke rose
from it. There was nothing to do now but wait for the six-inch line to
drown out the smolder; and Cripps and “Shine” waited, standing
with their pipe.
“Watch that ladder,” “Shine” whispered. “Doherty’ll be tryin’ to make
his sneak while its thick up here.”
A moment later, he yelled suddenly: “Yah!” And dropping his pipe, he
ran to fling himself on Doherty as the ex-fireman leaped out of the
smoke. They rolled together on the deck.
“Hold that man,” the chief ordered, as the crew tore the fighting
“Shine” from his enemy. They lifted Doherty to his feet and backed
him against the winch. “The police’ll want him for interfering with
firemen in the discharge of their duties.” He turned to the four
“Jiggers.” “I want you men to appear in court against him,
understand?... That’ll do you,” he said to “Shine.” “Go back to your
place.”
“Shine” went back to his place, licking his lips, with a venomous grin.
The rest of the fire was merely an affair of “standing fast” while the
six-inch line flooded the hold; and in half an hour “the job” was
done. The German first officer and his men took charge of Doherty
and agreed to turn him over to the police as soon as their boat tied
up to the pier; and to them was left the work, too, of returning the
wild animals to their cages. The firemen were free to pick up their
lines and return to the Hudson, chaffing “Shine.”
“That’s all right,” he swaggered. “I’m a li’n-tamer, all right, all right.”
“Yuh’re not much on polar bears,” they told him.
He retorted delicately, “Yuh can’t train a brute that’s got no sense.
Polar bears are like youse guys. They’re holler in the cocoa.”
“It was you that did the hollerin’.”
“I was callin’ you fullahs on. I seen yuh was a-scared to come.”
“The hell yuh say! Conlin in the lion’s den. Y’ought to set up a show
down on Coney.”
“Shine” winced at that thrust. “Never mind,” he said, with a curse. “I
done fer Doherty!”
Cripps drew him aside. “Are yuh goin’ t’ appear against Doherty?”
“Well, am I!” he cried. “Watch me! I wish t’ell it was a murder case,
that’s all! An’ if you an’ Moore won’t stan’ by me, yuh can go—”
“That’s all right,” Cripps put in hastily. “We’ll stan’ by yuh, ‘Shine’.”
“Yuh better!” “Shine” said.
The other men kept discreetly silent, and the boat turned back for
the run down the river.
XXV
“W ELL,” the chief said to Keighley, when they were alone again
in the bows, “I guess your company’s all right, Dan. If those
four men go into court against Doherty, it lets me out. I’ve got no
kick coming.” He smiled a satisfied slow smile. “Their association
isn’t as strong as it was, eh?”
Keighley passed a worried hand over his forehead. “Chief,” he said,
“I’ve had a good deal o’ trouble in the las’ two months, an’ I’ve been
doin’ a lot o’ thinkin’. An I want to tell yuh this: Here’s this fire
department as clean as anyone’d want it, an’ here’s ev’ry other
department in this town, between you an’ me, gettin’ rotten with
graft. Why don’t politics get a hold on us.” He leaned forward poking
out his forefinger. “’Cause politics can’t put out a fire, an’ a fire,
when it starts, has got to be put out, er the whole damn town goes
up. Yuh can’t fool with a fire.”
“Well?” the chief said.
“Well,” Keighley went on, “that’s where the ‘Jiggers’ fell down. An’ if
you’ve come back to the department to pound ‘Jiggers’ an’ knife the
men ’at knifed you, that’s where you’ll fall down. Don’t get on yer
ear, now. If this ain’t true, yuh needn’t mind it. An’ if it is true, yuh
can’t change it by gettin’ sore on me.”
“Go ahead,” the chief said. “Get it out of your system.”
Keighley nodded. “These ‘Jiggers’ here tried to stick me, instead of
attendin’ to their bus’ness—an’ they pretty near curled up their toes
in the bottom o’ the Sachsen. Moran tried to stick me at that lumber
yard blaze, an’ if it hadn’t been fer the way m’ own men stood by me
he’d’ve been burned out of his job. I attended to my work an’
treated ‘Jigger’ an’ anti-‘Jigger’ the same. An’ with Moran an the