2016-05-01 49 views

risposta

7

PowerShell 5 aggiunto una parola chiave static per questo:

static [string] $Bar = 'static member' 

Demo:

PS > class Foo { 
>>  static [string] $Bar = 'static member' 
>> } 
PS > [Foo]::Bar 
static member 
PS > 
+0

Grazie per la rapida risposta! – Avner