public ResMemberNameGroupBuilder FindMemberNameGroup(Identifier name) { ResMemberNameGroupBuilder result = null; _memberNameGroups.TryGetValue(name, out result); return(result); }
public ResMemberCategoryGroupBuilder( IResContainerFacetBuilder facetBuilder, ResMemberNameGroupBuilder nameGroupBuilder, ResMemberCategory category) : base(nameGroupBuilder.LazyFactory) { nameGroupBuilder.AddAction(NewBuilderPhase.Seal, () => DoneBuilding()); AddDependency(nameGroupBuilder); DoneBuilding(NewBuilderPhase.Dependencies); _facetBuilder = facetBuilder; _nameGroupBuilder = nameGroupBuilder; _category = category; var resMemberCategoryGroup = new ResMemberCategoryGroup( Name, Flavor, NewLazy(() => (from lineBuilder in _lines select lineBuilder.Value).Eager())); SetValue(resMemberCategoryGroup); }