<#.SYNOPSIS This script displays the value, and type, of an expression..DESCRIPTION This script is a rewrite of the second example on this page, The script illustrates how to use the GetType method to return the type that results from a calculation. in this case, two multiplying two int32 with the Pi field results in a System.Double..NOTES File Name : get-typetest.ps1 Au
Last modified by Thomas Lee on 6/28/2009 1:55:00 PM
<#.SYNOPSIS Formats a number using .NET - an MSDN Sample recoded in PowerShell.DESCRIPTION This script createa a number and formats it in Hex. Then a negative number is created and formatted several ways. Uses int32.parse method to do the parsing..NOTES File Name : Get-ParsedString Author : Thomas Lee - email@example.com Requires : PowerShell V2 CTP3.LINK Posed t
Last modified by Thomas Lee on 4/21/2009 2:25:29 PM
# MSDN Sample recoded using PowerShell
# See: http://msdn.microsoft.com/en-us/library/system.globalization.numberstyles(VS.85).aspx
# This script usesd the .value__ to obtain the value of each enum
# Thomas Lee - firstname.lastname@example.org
# Parse the string as a hex value and display the value as a decimal.
$num = "A"
$val = [system.int32]::Parse($num, [System.Globalization.Numb
Last modified by Thomas Lee on 5/21/2009 10:17:31 AM