Debugging Source

Topics: Building and extending application blocks
Mar 25, 2010 at 5:01 AM

Hi

I am experiencing issues when stepping through the Enterprise Library 5.0 Beta 2 source when debugging a unit test, using either VS 2010 RC or VS 2008.

For example, if I am debugging the MetadataValidatedTypeFixture.ValidatedPropertiesEnumerableIncludesNonIndexedReadablePublicPropertiesOnly test method, I can step into the MetadataValidatedType constructor (which is good), but I can't step into the MetadataValidatedType.GetValidatedProperties method (which ain't good).

The Visual Studio debugger indicates that the GetValidatedProperties method is non-user code. Any ideas about why it might be non-user code?

Regards,

Chris

Mar 25, 2010 at 5:48 AM

Hi

You can ignore this: the MetadataValidatedType.GetValidatedProperties method contains a yield return statement and the C# compiler is creating a compiler-generated class that I can't step into. At least I don't think that I can step into it.

Regards,

Chris