public MemberFacet Insert(MemberFacet facet) { var freeTextFacet = facet as MemberFacetFreeText; if (freeTextFacet != null) { return Insert(freeTextFacet); } var listFacet = facet as MemberFacetList; if (listFacet != null) { return Insert(listFacet); } throw new InvalidOperationException("Unknown MemberFacet type."); }
public MemberFacet Insert(MemberFacet facet) { var freeTextFacet = facet as MemberFacetFreeText; if (freeTextFacet != null) { return(Insert(freeTextFacet)); } var listFacet = facet as MemberFacetList; if (listFacet != null) { return(Insert(listFacet)); } throw new InvalidOperationException("Unknown MemberFacet type."); }