There are 1 entries for the tag MemberOf
Member.Of – Avoiding hard-coded strings for property names

In the hallways of building 42, several of us have talked about how often we need to hard-code member names as strings in code, but we always feel like there should be some language operator to do this.  We’ve specifically said there should be a memberof() in C# the same way there’s a typeof() operator. I got tired of waiting for it though, and decided to see how closely I could come to creating this behavior.  What sparked it was my usage of NHibernate’s Restrictions class tonight.  I was looking at a post on Ayende’s blog showing examples of...

posted @ Saturday, April 10, 2010 3:32 AM | Feedback (8)