Tag Archives: Lambda

C# – Compile-time checking of property names for Data Bindings

Ever wished you could bind properties to your input controls without using literal strings to identify the property name?

Want the compiler to check the property names are valid at compile time rather than waiting until/if it’s found while testing?

Here is an example of how to determine the name of a property using the property name as compilable code via Lambda’s

(Updated 9th Oct 2009 to support binding paths that extend beyond a first-level property)

Continue reading C# – Compile-time checking of property names for Data Bindings