변수 $a
과 $b
의 차이점은 무엇입니까? GetType이 PowerShell에서 사용됨, 변수 간 차이
$a = (Get-Date).DayOfWeek
$b = Get-Date | Select-Object DayOfWeek
나는
$a.GetType
$b.GetType
MemberType : Method
OverloadDefinitions : {type GetType()}
TypeNameOfValue : System.Management.Automation.PSMethod
Value : type GetType()
Name : GetType
IsInstance : True
MemberType : Method
OverloadDefinitions : {type GetType()}
TypeNameOfValue : System.Management.Automation.PSMethod
Value : type GetType()
Name : GetType
IsInstance : True
을 확인하려하지만, 이러한 변수의 출력이 다른 보이지만 차이 없을 것 같습니다.