private void Search() { BlockFilter <IMyBlockGroup> group_filter = BlockFilter <IMyBlockGroup> .Create(Me, MyProperty.filter); Groups = BlockSystem <IMyBlockGroup> .SearchGroupFilter(this, group_filter); Airlocks = new List <Airlock>(); if (Groups != null) { Groups.ForEach(delegate(IMyBlockGroup group) { Airlocks.Add(new Airlock(this, group.Name)); }); } }