2016-05-01 2 views

Antwort

7

Powershell-5 hat einen static Schlüsselwort für diese:

static [string] $Bar = 'static member' 

Demo:

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

Dank für die schnelle Antwort! – Avner

Verwandte Themen