internal PropertyTreeDefinition GetDefinition() { object component = this.Component; if (component != null) { return(PropertyTreeDefinition.FromValue(component)); } else if (this.ComponentType != null) { return(PropertyTreeDefinition.FromType(this.ComponentType)); } else { return(null); } }