andrewducker: (Default)
[personal profile] andrewducker
I just learned that "foreach" in c# does an implicit cast. I wasn't expecting that. Turns out to be terribly handy in the code I'm writing though.

Date: 2010-08-30 11:12 pm (UTC)
From: [identity profile] kurosau.livejournal.com
What is an implicit cast?

Also, you wouldn't happen to know how to replace elements in an array in bulk in something like PowerShell, would you?

I'm generating results from Exchange PowerShell cmd-lets, and they generate data objects that are basically large tables, and I effectively need to do a find and replace to remove prefixes in one column of the table.

I've been trying to find a way to start, but no dice so far.

Date: 2010-08-31 08:36 am (UTC)
From: [identity profile] kurosau.livejournal.com
I've been working on a loop, but the problem I have is that it loops through a single object that has multiple elements in it, which then gets fed into another object that has multiple objects, so I've been having trouble targeting the changes across the entire set of output data. But thanks for the suggestions.

March 2026

S M T W T F S
1 2 3 4 56 7
8 9 10 11 12 13 14
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 15th, 2026 09:14 am
Powered by Dreamwidth Studios