Project

General

Profile

Function New-Struct » History » Version 2

Version 1 (Laurent Dardenne, 09/11/2009 06:29 PM) → Version 2/4 (Laurent Dardenne, 09/13/2009 09:28 PM)

h1. Function New-Struct


<pre>function Compile-Csharp ([string] $code, [Array]$References)</pre>
<pre>function New-GenericObject
$instance = $(throw "Please provide an instance on which to invoke the generic method"),
[string] $methodName = $(throw "Please provide a method name to invoke"),
[string[]] $typeParameters = $(throw "Please specify the type parameters"),
[object[]] $methodParameters = $(throw "Please specify the method parameters")
)
</pre>
<pre>function Invoke-GenericMethod param(
$instance = $(throw "Please provide an instance on which to invoke the generic method"),
[string] $methodName = $(throw "Please provide a method name to invoke"),
[string[]] $typeParameters = $(throw "Please specify the type parameters"),
[object[]] $methodParameters = $(throw "Please specify the method parameters")
)
</pre>
<pre>function
New-Struct param([HashTable]$Structs) </pre>
<pre>function New-Enum ([string] $name)</pre>