« Grouping Schedule Headers and How to Do Something | Main | Migrating a Built-in Category and Other Things »

April 23, 2013

Comments

the following code can be simplified as -> ElementId id = e.GetTypeId();

instead of -> ElementId id = e.GetValidTypes().First(id2 => id2.Equals(e.GetTypeId()));

bit of overthinking perhaps in original code.

Dear Ning,

Thank you very much for the simplification.

I added a note above in the main post.

Thinking is error prone and should be avoided wherever possible :-)

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource