@@ -5,14 +5,16 @@ title: Types
55---
66# 4. Types
77
8- In PowerShell, each value has a type, and types fall into one of two main categories: ** value types**
9- and ** reference types** . Consider the type ` int ` , which is typical of value types. A value of type
10- ` int ` is completely self-contained; all the bits needed to represent that value are stored in that
11- value, and every bit pattern in that value represents a valid value for its type. Now, consider the
12- array type ` int[] ` , which is typical of reference types. A so-called value of an array type can hold
13- either a reference to an object that actually contains the array elements, or the ** null reference**
14- whose value is ` $null ` . The important distinction between the two type categories is best
15- demonstrated by the differences in their semantics during assignment. For example,
8+ [ !INCLUDE [ Disclaimer] ( ../../includes/language-spec.md )]
9+
10+ In PowerShell, each value has a type, and types fall into one of two main categories: ** value
11+ types** and ** reference types** . Consider the type ` int ` , which is typical of value types. A value
12+ of type ` int ` is completely self-contained; all the bits needed to represent that value are stored
13+ in that value, and every bit pattern in that value represents a valid value for its type. Now,
14+ consider the array type ` int[] ` , which is typical of reference types. A so-called value of an array
15+ type can hold either a reference to an object that actually contains the array elements, or the
16+ ** null reference** whose value is ` $null ` . The important distinction between the two type categories
17+ is best demonstrated by the differences in their semantics during assignment. For example,
1618
1719``` powershell
1820$i = 100 # $i designates an int value 100
0 commit comments