public ColumnDescriptor ResolveChild(string name) { var propertyDescriptor = DataSchema.GetPropertyDescriptor(PropertyType, name); if (propertyDescriptor == null) { return(null); } return(new Reflected(this, propertyDescriptor)); }
public ColumnDescriptor ResolveChild(string name) { if (PropertyType == null) { return(null); } if (name == null) { var collectionInfo = DataSchema.GetCollectionInfo(PropertyType); if (collectionInfo != null) { return(new ColumnDescriptor(this, collectionInfo)); } } var propertyDescriptor = DataSchema.GetPropertyDescriptor(PropertyType, name); if (propertyDescriptor == null) { return(null); } return(new ColumnDescriptor(this, propertyDescriptor)); }