Project

General

Profile

Function New-Struct » History » Version 1

Laurent Dardenne, 09/11/2009 06:29 PM

1 1 Laurent Dardenne
h1. Function New-Struct
2 1 Laurent Dardenne
<pre>function Compile-Csharp ([string] $code, [Array]$References)</pre>
3 1 Laurent Dardenne
<pre>function New-GenericObject 
4 1 Laurent Dardenne
      $instance = $(throw "Please provide an instance on which to invoke the generic method"), 
5 1 Laurent Dardenne
      [string] $methodName = $(throw "Please provide a method name to invoke"), 
6 1 Laurent Dardenne
      [string[]] $typeParameters = $(throw "Please specify the type parameters"), 
7 1 Laurent Dardenne
      [object[]] $methodParameters = $(throw "Please specify the method parameters")
8 1 Laurent Dardenne
      )
9 1 Laurent Dardenne
</pre>       
10 1 Laurent Dardenne
<pre>function Invoke-GenericMethod  param( 
11 1 Laurent Dardenne
      $instance = $(throw "Please provide an instance on which to invoke the generic method"), 
12 1 Laurent Dardenne
      [string] $methodName = $(throw "Please provide a method name to invoke"), 
13 1 Laurent Dardenne
      [string[]] $typeParameters = $(throw "Please specify the type parameters"), 
14 1 Laurent Dardenne
      [object[]] $methodParameters = $(throw "Please specify the method parameters")
15 1 Laurent Dardenne
      )
16 1 Laurent Dardenne
</pre> 
17 1 Laurent Dardenne
<pre>function New-Struct param([HashTable]$Structs) </pre>
18 1 Laurent Dardenne
<pre>function New-Enum ([string] $name)</pre>