GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — WriteObject enumerateCollection set to true not enumerating DataRowCollection in System.Data.DataTable · Issue #6453 · PowerShell/PowerShell Closed Labels Committee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionIssue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime DescriptionSteps to reproduceCreate a simple cmdlet with this method as the ProcessRecord() protected override void ProcessRecord() { DataTable dt = new DataTable("test"); dt.Columns.Add("Name", typeof(string)); dt.Columns.Add("Age", typeof(string)); DataRow dr = dt.NewRow(); dr["Name"] = "John"; dr["Age"] = "20"; DataRow dr2 = dt.NewRow(); dr["Name"] = "Susan"; dr["Age"] = "25"; dt.Rows.Add(dr); dt.Rows.Add(dr2); WriteObject(dt, enumerateCollection: true); } Expected behaviorReturn type should be a System.Array with the 2 rows enumerated. Actual behaviorReturn type is a DataTable not a System.Array with the rows enumerated. Environment data> $PSVersionTable Activity
MetadataMetadataAssigneesLabelsCommittee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionIssue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |