GetSelected(this cPointObj obj, string Name) { bool Selected; Selected = default(bool); var res = obj.GetSelected(Name, ref Selected); return(Selected); }