Lets imagine that class A has a lot of properties, and some of those properties are themselves classes and also have lots of properties. I have a string which tells what properties of class A I should check, and it might be a nested property like A.B.C, where B is property of A, and C is property of B. So if string is "B.C" then I need to check if C is a DataObjects.NET.ObjectModel.ReferenceField . I tried doing the following:
But the problem with this code is that field.Type always describes type A, even after first iteration. So how do I check if nested property is a ReferenceField? |
Hello, Bogdan
But
|