Skip to content

Instantly share code, notes, and snippets.


Ian Kemp IanKemp

  • Virtual Clinic Direct
  • United Kingdom
Block or report user

Report or block IanKemp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Convert-ToDataTable.ps1
Function ConvertTo-DataTable { #
[CmdletBinding()]Param( # Version 01.00.01, by iRon
[Parameter(Position=0, Mandatory=$true, ValueFromPipeline = $true)] [PSObject[]]$Object, [HashTable]$ColumnType = @{}
$TypeCast = @{
Guid = 'Guid', 'String'
DateTime = 'DateTime', 'String'
DateTimeOffset = 'DateTimeOffset', 'String'
Byte = 'Byte', 'Char', 'Int16', 'Int32', 'Int64', 'UInt16', 'UInt32', 'UInt64', 'Decimal', 'Single', 'Double', 'String', 'Boolean'
SByte = 'SByte', 'Int16', 'Int32', 'Int64', 'Decimal', 'Single', 'Double', 'String', 'Boolean'
View Program.cs
using System;
using System.Net.Http;
namespace ConsoleApp18
class Program
static void Main(string[] args)
var client = new HttpClient();
You can’t perform that action at this time.