This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ObjectExtensions | |
{ | |
private static readonly ConcurrentDictionary<Type, Func<object, object>> MemberwiseCloneCache = | |
new ConcurrentDictionary<Type, Func<object, object>>(); | |
public static T With<T>(this T obj, Action<T> mutator) where T : class | |
{ | |
if (obj == null) | |
{ | |
return null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ([string]$excelFileName) | |
Set-ExecutionPolicy Bypass -Scope Process | |
[System.Threading.Thread]::CurrentThread.CurrentCulture = New-Object "System.Globalization.CultureInfo" "en-US" | |
Function ExportWSToCSV ($excelPath, $csvFileName) | |
{ | |
$excelFile = Get-Item $excelPath | |
$excelLocation = $excelFile.DirectoryName | |
$E = New-Object -ComObject Excel.Application |
OlderNewer