Display: Cloud | List
Most Popular Tags
Results (3 total) All > powershell (x) > system.int32 (x)
GetType Example - Using PowerShell (typeof (C# Reference))
<#.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
Parse Sample using PowerShell (Int32.Parse Method (System))
<#.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 - tfl@psp.co.uk Requires : PowerShell V2 CTP3.LINK Posed t
Last modified by Thomas Lee on 4/21/2009 2:25:29 PM
Parse string using PowerShell (NumberStyles Enumeration (System.Globalization))
# Get-ParsedString2.ps1 # 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 - tfl@psp.co.uk # 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
Page view tracker