コード例 #1
0
 public static string GetProperty([NotNull] this PSObject psObject, [NotNull] PsObjectProperty property)
 {
     return(psObject.Properties[property]?.Value.ToString());
 }
コード例 #2
0
 public static T GetProperty <T>([NotNull] this PSObject psObject, [NotNull] PsObjectProperty property)
 {
     return((T)psObject.Properties[property]?.Value);
 }