System.Web.PowerShell.HttpPowerShellPSObjectConverter.AsPSObject C# (CSharp) Method

AsPSObject() public static method

public static AsPSObject ( this collection ) : IEnumerable
collection this
return IEnumerable
        public static IEnumerable<PSObject> AsPSObject(this IEnumerable<dynamic> collection)
        {
            return collection.OfType<DynamicPSObject>().Select(i => (PSObject)i);
        }