ulidtko 17.07.2012 19:07

http://stackoverflow.com/questions/10581...

> $true and $false.
> Those are constants, though. There are no language-level literals for booleans.

То-то я думаю, что за хуйня, блядь, происходит!

PS Z:\> $wget = (new-object System.Net.WebClient)

PS Z:\> $wget.UseDefaultCredentials = True

PS Z:\> $wget.UseDefaultCredentials
False

PS Z:\> # ??? wtf

PS Z:\> $wget.UseDefaultCredentials | Get-Member

TypeName: System.Boolean

Name MemberType Definition
---- — ----------
CompareTo Method int CompareTo(System.Object obj), int CompareTo(bool value)
Equals Method bool Equals(System.Object obj), bool Equals(bool obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
GetTypeCode Method System.TypeCode GetTypeCode()
ToString Method string ToString(), string ToString(System.IFormatProvider provider)

PS Z:\> $wget.UseDefaultCredentials = [System.Boolean] 1

PS Z:\> $wget.UseDefaultCredentials
True

PS Z:\> # much beta LoL

1. 238328 17.07.2012 19:08 25413532721342550451601586

гагага

2. gelraen 17.07.2012 19:18

ты так скоро станешь профессиональным говноедом 80-го уровня

Do you really want to delete ?