public PropertyMetadata(PropertyInfo propertyInfo) { this.Name = propertyInfo.Name; this.Type = TypeMetadata.EmitReference(propertyInfo.PropertyType); //this.Type = new TypeMetadata(propertyInfo.PropertyType); }