Пример #1
0
        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.");
        }
Пример #2
0
        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.");
        }