raandreeSamplerTest1.psm1
#Region './Classes/1.class1.ps1' -1 class Class1 { [string]$Name = 'Class1' Class1() { #default Constructor } [String] ToString() { # Typo "calss" is intentional return ( 'This calss is {0}' -f $this.Name) } } #EndRegion './Classes/1.class1.ps1' 16 #Region './Classes/2.class2.ps1' -1 class Class2 { [string]$Name = 'Class2' Class2() { #default constructor } [String] ToString() { return ( 'This calss is {0}' -f $this.Name) } } #EndRegion './Classes/2.class2.ps1' 15 #Region './Classes/3.class11.ps1' -1 class Class11 : Class1 { [string]$Name = 'Class11' Class11 () { } [String] ToString() { return ( 'This calss is {0}:{1}' -f $this.Name,'class1') } } #EndRegion './Classes/3.class11.ps1' 14 #Region './Classes/4.class12.ps1' -1 class Class12 : Class1 { [string]$Name = 'Class12' Class12 () { } [String] ToString() { return ( 'This calss is {0}:{1}' -f $this.Name,'class1') } } #EndRegion './Classes/4.class12.ps1' 14 #Region './Private/Get-PrivateFunction.ps1' -1 function Get-PrivateFunction { <# .SYNOPSIS This is a sample Private function only visible within the module. .DESCRIPTION This sample function is not exported to the module and only return the data passed as parameter. .EXAMPLE $null = Get-PrivateFunction -PrivateData 'NOTHING TO SEE HERE' .PARAMETER PrivateData The PrivateData parameter is what will be returned without transformation. #> [cmdletBinding()] [OutputType([string])] param ( [Parameter()] [String] $PrivateData ) process { Write-Output $PrivateData } } #EndRegion './Private/Get-PrivateFunction.ps1' 32 #Region './Public/Get-Something.ps1' -1 function Get-Something { <# .SYNOPSIS Sample Function to return input string. .DESCRIPTION This function is only a sample Advanced function that returns the Data given via parameter Data. .EXAMPLE Get-Something -Data 'Get me this text' .PARAMETER Data The Data parameter is the data that will be returned without transformation. #> [cmdletBinding( SupportsShouldProcess = $true, ConfirmImpact = 'Low' )] param ( [Parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] [String] $Data ) process { if ($pscmdlet.ShouldProcess($Data)) { Write-Verbose ('Returning the data: {0}' -f $Data) Get-PrivateFunction -PrivateData $Data } else { Write-Verbose 'oh dear' } } } #EndRegion './Public/Get-Something.ps1' 42 # SIG # Begin signature block # MIIGrAYJKoZIhvcNAQcCoIIGnTCCBpkCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDFXVWuX5FRbPmX # RaHqWebXfbZzQNAtyLUFuujWMswpMKCCBCYwggQiMIICCqADAgECAhB/ZPTfcpD1 # hULdp5Xm0TSMMA0GCSqGSIb3DQEBCwUAMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0 # MB4XDTI0MDYwODE3NDQ1M1oXDTI2MDYwODE3NTQ1M1owGzEZMBcGA1UEAwwQUDJT # Q2hpbGRDZXJ0U2lnbjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALpa # 7TqrYWo+cNXGHlv8FsuVrZMmZXWdnH9cH9eVsIdYsQ1rZwQv0u7DkjKjJCUFqwmr # y9e4pHM/kjmx0JlDJCPnmQERyrlyV4P16QuOE39zLOHlV1IH2bztDMd/FuwWBvli # vuqcdoz/gHGCzUziOUlRwHhbanHKVQdeCoUCvNZsuFQTtawgKhamnNZ0u0qEsM9h # ggEzMepl039Ynx7BOsAWV+vRRJ+JWPMmvbFpj86MvV7UJFan1spe3EFlDAMp5U4s # 1Y8gneztwVU+NT4cBXnDB1GYJ7WAwa0W1J9YGCEQIUICcygGOWSOoJZqP79l4BF9 # AxznzjFQaXTJvt7CbzUCAwEAAaNnMGUwDgYDVR0PAQH/BAQDAgWgMBMGA1UdJQQM # MAoGCCsGAQUFBwMDMB8GA1UdIwQYMBaAFEZA/qoyl1UIZ1BeDAKqnV9HJxu2MB0G # A1UdDgQWBBSo7Bob6CFIevRr42y0JxlIoAkULDANBgkqhkiG9w0BAQsFAAOCAgEA # EuiPdpucRc+UckhLyivVJOwTIJg3NiLs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