Chapter 3. Working with types

 

This chapter covers:

  • 3.1 Type management in the wild, wild West
  • 3.2 Basic types and literals
  • 3.3 Collections: dictionaries and hashtables
  • 3.4 Collections: arrays and sequences
  • 3.5 Type literals
  • 3.6 Type conversions
  • 3.7 Summary

“When I use a word,” Humpty Dumpty said, in rather a scornful tone, “it means just what I choose it to mean—neither more nor less.”

Lewis Carroll, Through the Looking Glass

Most shell environments can only deal with strings, so the ability to use objects makes PowerShell different. Where you have objects, you also have object types. Much of the power of PowerShell comes from the innovative way it uses types. In this chapter, we’ll look at the PowerShell type system, show how to take advantage of it, and examine some of the things you can accomplish with types in PowerShell.

3.1. Type Management in the Wild, Wild West

 
 
 
 

3.2. Basic Types and Literals

 
 
 
 

3.3. Collections: Dictionaries and Hashtables

 
 
 
 

3.4. Collections: Arrays and Sequences

 
 
 
 

3.5. Type Literals

 

3.6. Type Conversions

 
 
 

3.7. Summary

 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest