CSharpOperators.psm1
# Copyright (c) 2022 Anthony J. Raymond, MIT License (see manifest for details) # Copyright (c) 2015 Warren Frame, Modified "PowerShell Module Framework" (http://github.com/ramblingcookiemonster) $Public = Get-ChildItem -Path "${PSScriptRoot}\Public\*.ps1" -ErrorAction SilentlyContinue foreach ($Function in $Public) { try { . $Function.FullName } catch { throw ([System.Management.Automation.ErrorRecord]::new( [System.IO.FileLoadException] ("The function '{0}' was not loaded because an error occurred." -f $Function.BaseName), "FunctionUnavailable", [System.Management.Automation.ErrorCategory]::ResourceUnavailable, $Function.FullName )) } } Export-ModuleMember -Function $Public.BaseName |