Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 4, 2019. It is now read-only.
/PashPublic archive

Commitcb00078

Browse files
committed
PassPSObject to a parameter.
This mattered for `Write-host 'foo'`.I can't say that I really understand what the right set of conversionsis, and why.
1 parent5ed9c38 commitcb00078

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎Source/Pash.System.Management/Pash/Implementation/CommandProcessor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ private void BindArgument(string name, object value, Type type)
112112
propertyInfo.SetValue(Command,value.ToString(),null);
113113
}
114114

115+
elseif(propertyInfo.PropertyType==typeof(PSObject))
116+
{
117+
propertyInfo.SetValue(Command,PSObject.AsPSObject(value),null);
118+
}
119+
115120
else
116121
{
117122
propertyInfo.SetValue(Command,value,null);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp