public bool HasUserOption(string name) { if (Ex.Any(uo => uo.Name == name)) { return(true); } // Virtual Property not found, so this object was probably created and added during the // current session, because Virtual Properties are bulk-populated when the project is // initially opened, in Project.FillVirtualProperties(). So now we will populate this object // individually. Interfaces.SharedData.CurrentProject.PopulateVirtualProperties(this); return(Ex.Any(uo => uo.Name == name)); }